Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (36 sloc) 1.45 kb
//
// XMLBasedOutputGenerator+HierarchyParsingAPI.m
// appledoc
//
// Created by Tomaz Kragelj on 28.5.09.
// Copyright (C) 2009, Tomaz Kragelj. All rights reserved.
//
#import "XMLBasedOutputGenerator+GeneralParsingAPI.h"
#import "XMLBasedOutputGenerator+HierarchyParsingAPI.h"
#import "DoxygenConverter.h"
@implementation XMLBasedOutputGenerator (HierarchyParsingAPI)
//////////////////////////////////////////////////////////////////////////////////////////
#pragma mark Hierarchy items parsing support
//////////////////////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------------------------
- (NSString*) extractHierarchyGroupItemRef:(id) item
{
NSXMLNode* idAttr = [item attributeForName:@"id"];
if (idAttr) return [idAttr stringValue];
return nil;
}
//----------------------------------------------------------------------------------------
- (NSString*) extractHierarchyGroupItemName:(id) item
{
NSXMLElement* nameNode = [self extractSubitemFromItem:item withName:@"name"];
if (nameNode) return [nameNode stringValue];
return @"";
}
//----------------------------------------------------------------------------------------
- (NSArray*) extractHierarchyGroupItemChildren:(id) item
{
NSArray* childrenNodes = [item nodesForXPath:@"children/object" error:nil];
if ([childrenNodes count] > 0) return childrenNodes;
return nil;
}
@end
Jump to Line
Something went wrong with that request. Please try again.