PageRenderTime 26ms CodeModel.GetById 19ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Spreadsheets/GDataSpreadsheetHeader.m

http://macfuse.googlecode.com/
Objective C | 52 lines | 22 code | 13 blank | 17 comment | 1 complexity | feefb360504c0754efc529069ceddd58 MD5 | raw file
 1/* Copyright (c) 2009 Google Inc.
 2 *
 3 * Licensed under the Apache License, Version 2.0 (the "License");
 4 * you may not use this file except in compliance with the License.
 5 * You may obtain a copy of the License at
 6 *
 7 *     http://www.apache.org/licenses/LICENSE-2.0
 8 *
 9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16//
17//  GDataSpreadsheetHeader.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE
21
22#import "GDataSpreadsheetHeader.h"
23
24#import "GDataEntrySpreadsheet.h"
25
26@implementation GDataSpreadsheetHeader
27
28+ (NSString *)extensionElementURI       { return kGDataNamespaceGSpread; }
29+ (NSString *)extensionElementPrefix    { return kGDataNamespaceGSpreadPrefix; }
30+ (NSString *)extensionElementLocalName { return @"header"; }
31
32- (NSString *)attributeName {
33  return @"row";
34}
35
36+ (GDataSpreadsheetHeader *)headerWithRow:(int)row {
37  return [self valueWithInt:row];
38}
39
40#pragma mark -
41
42- (NSNumber *)row {
43  return [self intNumberValue];
44}
45
46- (void)setRow:(NSNumber *)str {
47  [self setStringValue:[str stringValue]];
48}
49
50@end
51
52#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_SPREADSHEET_SERVICE