File Coverage

lib/eBay/API/XML/DataType/Base64BinaryType.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::Base64BinaryType;
4              
5 1     1   1040 use strict;
  1         2  
  1         25  
6 1     1   4 use warnings;
  1         2  
  1         25  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. Base64BinaryType.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::Base64BinaryType
21              
22             =head1 DESCRIPTION
23              
24             Used for storing an optional reference ID to the binary attachment
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::Base64BinaryType inherits from the L class
36              
37             =cut
38              
39 1     1   31 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'content', 'xs:base64Binary', '', '', '' ]
45             );
46             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
47              
48             my @gaAttributes = ( [ 'contentType', 'xs:string', '', '', '' ]
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 setValue()
70              
71             # Argument: 'xs:base64Binary'
72              
73             =cut
74              
75             sub setValue {
76             my $self = shift;
77             $self->{'content'} = shift
78             }
79              
80             =head2 getValue()
81              
82             # Returns: 'xs:base64Binary'
83              
84             =cut
85              
86             sub getValue {
87             my $self = shift;
88             return $self->{'content'};
89             }
90              
91              
92              
93              
94             =head2 setContentType()
95              
96             Stores an optional reference ID to the binary attachment.
97              
98             Calls: UploadSiteHostedPictures
99             RequiredInput: No
100              
101             # Argument: 'xs:string'
102              
103             =cut
104              
105             sub setContentType {
106             my $self = shift;
107             $self->{'contentType'} = shift
108             }
109              
110             =head2 getContentType()
111              
112             # Returns: 'xs:string'
113              
114             =cut
115              
116             sub getContentType {
117             my $self = shift;
118             return $self->{'contentType'};
119             }
120              
121              
122              
123             ## Attribute and Property lists
124             sub getPropertiesList {
125             my $self = shift;
126             return \@gaProperties;
127             }
128              
129             sub getAttributesList {
130             my $self = shift;
131             return \@gaAttributes;
132             }
133              
134              
135              
136             1;