PageRenderTime 26ms CodeModel.GetById 11ms app.highlight 13ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/WebmasterTools/GDataSitemapMobile.m

http://macfuse.googlecode.com/
Objective C | 78 lines | 34 code | 19 blank | 25 comment | 1 complexity | 97d24f298828e5c00d0fa19d89f78e8a MD5 | raw file
 1/* Copyright (c) 2008 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//  GDataSitemapMobile.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE
21
22#import "GDataSitemapMobile.h"
23
24#import "GDataWebmasterToolsConstants.h"
25
26// Mobile elements, like
27//
28//       <wt:sitemap-mobile>
29//           <wt:markup-language>HTML</wt:markup-language>
30//           <wt:markup-language>WAP</wt:markup-language>
31//       </wt:sitemap-mobile>
32//
33// http://code.google.com/apis/webmastertools/docs/reference.html
34
35@implementation GDataSitemapMarkupLanguage
36+ (NSString *)extensionElementURI       { return kGDataNamespaceWebmasterTools; }
37+ (NSString *)extensionElementPrefix    { return kGDataNamespaceWebmasterToolsPrefix; }
38+ (NSString *)extensionElementLocalName { return @"markup-language"; }
39@end
40
41@implementation GDataSitemapMobile
42
43+ (NSString *)extensionElementPrefix { return kGDataNamespaceWebmasterToolsPrefix; }
44+ (NSString *)extensionElementURI { return kGDataNamespaceWebmasterTools; }
45+ (NSString *)extensionElementLocalName { return @"sitemap-mobile"; }
46
47+ (id)sitemapMobile {
48  
49  GDataSitemapMobile *obj;
50  obj = [self object];
51  return obj;
52}
53
54- (void)addExtensionDeclarations {
55  
56  [super addExtensionDeclarations];
57  
58  [self addExtensionDeclarationForParentClass:[self class]
59                                   childClass:[GDataSitemapMarkupLanguage class]];  
60}
61
62#pragma mark -
63
64- (NSArray *)markupLanguages {
65  return [self objectsForExtensionClass:[GDataSitemapMarkupLanguage class]];  
66}
67
68- (void)setMarkupLanguages:(NSArray *)arr {
69  [self setObjects:arr forExtensionClass:[GDataSitemapMarkupLanguage class]];
70}
71
72- (void)addMarkupLanguage:(GDataSitemapMarkupLanguage *)obj {
73  [self addObject:obj forExtensionClass:[GDataSitemapMarkupLanguage class]]; 
74}
75
76@end
77
78#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE