/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. // GDataSitemapMobile.m
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE
  19. #import "GDataSitemapMobile.h"
  20. #import "GDataWebmasterToolsConstants.h"
  21. // Mobile elements, like
  22. //
  23. // <wt:sitemap-mobile>
  24. // <wt:markup-language>HTML</wt:markup-language>
  25. // <wt:markup-language>WAP</wt:markup-language>
  26. // </wt:sitemap-mobile>
  27. //
  28. // http://code.google.com/apis/webmastertools/docs/reference.html
  29. @implementation GDataSitemapMarkupLanguage
  30. + (NSString *)extensionElementURI { return kGDataNamespaceWebmasterTools; }
  31. + (NSString *)extensionElementPrefix { return kGDataNamespaceWebmasterToolsPrefix; }
  32. + (NSString *)extensionElementLocalName { return @"markup-language"; }
  33. @end
  34. @implementation GDataSitemapMobile
  35. + (NSString *)extensionElementPrefix { return kGDataNamespaceWebmasterToolsPrefix; }
  36. + (NSString *)extensionElementURI { return kGDataNamespaceWebmasterTools; }
  37. + (NSString *)extensionElementLocalName { return @"sitemap-mobile"; }
  38. + (id)sitemapMobile {
  39. GDataSitemapMobile *obj;
  40. obj = [self object];
  41. return obj;
  42. }
  43. - (void)addExtensionDeclarations {
  44. [super addExtensionDeclarations];
  45. [self addExtensionDeclarationForParentClass:[self class]
  46. childClass:[GDataSitemapMarkupLanguage class]];
  47. }
  48. #pragma mark -
  49. - (NSArray *)markupLanguages {
  50. return [self objectsForExtensionClass:[GDataSitemapMarkupLanguage class]];
  51. }
  52. - (void)setMarkupLanguages:(NSArray *)arr {
  53. [self setObjects:arr forExtensionClass:[GDataSitemapMarkupLanguage class]];
  54. }
  55. - (void)addMarkupLanguage:(GDataSitemapMarkupLanguage *)obj {
  56. [self addObject:obj forExtensionClass:[GDataSitemapMarkupLanguage class]];
  57. }
  58. @end
  59. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE