| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::DataType::XSLFileType; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 1901 | use strict; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 36 |  | 
| 6 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 35 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. XSLFileType.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::XSLFileType | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | Describes an XSL file that would be returned from an Item Specifics or Pre-filled | 
| 25 |  |  |  |  |  |  | Item Information meta-data call (such as GetAttributesXSL or GetProductFinderXSL). | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =cut | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 35 |  |  |  |  |  |  |  | 
| 36 |  |  |  |  |  |  | eBay::API::XML::DataType::XSLFileType inherits from the L class | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | =cut | 
| 39 |  |  |  |  |  |  |  | 
| 40 | 1 |  |  | 1 |  | 47 | use eBay::API::XML::BaseDataType; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseDataType"); | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | my @gaProperties = ( [ 'FileContent', 'xs:string', '', '', '' ] | 
| 46 |  |  |  |  |  |  | , [ 'FileName', 'xs:string', '', '', '' ] | 
| 47 |  |  |  |  |  |  | , [ 'FileVersion', '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 setFileContent() | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | Contains a MIME base-64-encoded representation of the XSL file. | 
| 75 |  |  |  |  |  |  | See the eBay Web Services Guide for information on decoding | 
| 76 |  |  |  |  |  |  | the XSL stylesheet file. If no XSL file is available (or if you passed no detail level), | 
| 77 |  |  |  |  |  |  | this property is empty or not returned. | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AttrXSLOverview | 
| 80 |  |  |  |  |  |  | Title: Working with Attribute XSL Stylesheets | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | =cut | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | sub setFileContent { | 
| 87 |  |  |  |  |  |  | my $self = shift; | 
| 88 |  |  |  |  |  |  | $self->{'FileContent'} = shift | 
| 89 |  |  |  |  |  |  | } | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =head2 getFileContent() | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | Calls: GetAttributesXSL | 
| 94 |  |  |  |  |  |  | Returned: Always | 
| 95 |  |  |  |  |  |  | Details: DetailLevel: ReturnAll | 
| 96 |  |  |  |  |  |  | SeeLink: HASH(0x47f0738) | 
| 97 |  |  |  |  |  |  | HASH(0x47f08a0) | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | Calls: GetProductFinderXSL | 
| 101 |  |  |  |  |  |  | Returned: Always | 
| 102 |  |  |  |  |  |  | Details: DetailLevel: ReturnAll | 
| 103 |  |  |  |  |  |  | SeeLink: HASH(0x47f0be8) | 
| 104 |  |  |  |  |  |  | HASH(0x47f0d50) | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | =cut | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | sub getFileContent { | 
| 112 |  |  |  |  |  |  | my $self = shift; | 
| 113 |  |  |  |  |  |  | return $self->{'FileContent'}; | 
| 114 |  |  |  |  |  |  | } | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | =head2 setFileName() | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | The name of the XSL file. Store this information to use it | 
| 120 |  |  |  |  |  |  | as input to the call in the future. | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | =cut | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | sub setFileName { | 
| 127 |  |  |  |  |  |  | my $self = shift; | 
| 128 |  |  |  |  |  |  | $self->{'FileName'} = shift | 
| 129 |  |  |  |  |  |  | } | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | =head2 getFileName() | 
| 132 |  |  |  |  |  |  |  | 
| 133 |  |  |  |  |  |  | Calls: GetAttributesXSL | 
| 134 |  |  |  |  |  |  | GetProductFinderXSL | 
| 135 |  |  |  |  |  |  | Returned: Always | 
| 136 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 137 |  |  |  |  |  |  |  | 
| 138 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 139 |  |  |  |  |  |  |  | 
| 140 |  |  |  |  |  |  | =cut | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | sub getFileName { | 
| 143 |  |  |  |  |  |  | my $self = shift; | 
| 144 |  |  |  |  |  |  | return $self->{'FileName'}; | 
| 145 |  |  |  |  |  |  | } | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  |  | 
| 148 |  |  |  |  |  |  | =head2 setFileVersion() | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | The version number of the XSL file. Store this information to use it | 
| 151 |  |  |  |  |  |  | as input to the call in the future. To get the current version value without | 
| 152 |  |  |  |  |  |  | retrieving the XSL file, do not pass DetailLevel in the request. | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | =cut | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | sub setFileVersion { | 
| 159 |  |  |  |  |  |  | my $self = shift; | 
| 160 |  |  |  |  |  |  | $self->{'FileVersion'} = shift | 
| 161 |  |  |  |  |  |  | } | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | =head2 getFileVersion() | 
| 164 |  |  |  |  |  |  |  | 
| 165 |  |  |  |  |  |  | Calls: GetAttributesXSL | 
| 166 |  |  |  |  |  |  | GetProductFinderXSL | 
| 167 |  |  |  |  |  |  | Returned: Always | 
| 168 |  |  |  |  |  |  | Details: DetailLevel: none, ReturnAll | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | #    Returns: 'xs:string' | 
| 171 |  |  |  |  |  |  |  | 
| 172 |  |  |  |  |  |  | =cut | 
| 173 |  |  |  |  |  |  |  | 
| 174 |  |  |  |  |  |  | sub getFileVersion { | 
| 175 |  |  |  |  |  |  | my $self = shift; | 
| 176 |  |  |  |  |  |  | return $self->{'FileVersion'}; | 
| 177 |  |  |  |  |  |  | } | 
| 178 |  |  |  |  |  |  |  | 
| 179 |  |  |  |  |  |  |  | 
| 180 |  |  |  |  |  |  |  | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  |  | 
| 183 |  |  |  |  |  |  | ##  Attribute and Property lists | 
| 184 |  |  |  |  |  |  | sub getPropertiesList { | 
| 185 |  |  |  |  |  |  | my $self = shift; | 
| 186 |  |  |  |  |  |  | return \@gaProperties; | 
| 187 |  |  |  |  |  |  | } | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  | sub getAttributesList { | 
| 190 |  |  |  |  |  |  | my $self = shift; | 
| 191 |  |  |  |  |  |  | return \@gaAttributes; | 
| 192 |  |  |  |  |  |  | } | 
| 193 |  |  |  |  |  |  |  | 
| 194 |  |  |  |  |  |  |  | 
| 195 |  |  |  |  |  |  |  | 
| 196 |  |  |  |  |  |  | 1; |