Skip to content

Commit

Permalink
Remove external dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Blues authored and Jasper Blues committed Jan 2, 2013
1 parent 8b53e36 commit 53bd457
Show file tree
Hide file tree
Showing 25 changed files with 135 additions and 246 deletions.
129 changes: 0 additions & 129 deletions External/OCLogTemplate/OCLogTemplate.h

This file was deleted.

6 changes: 0 additions & 6 deletions External/OCLogTemplate/README

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@


#import <Foundation/Foundation.h>
#import "RXMLElement.h"
#import "SpringRXMLElement.h"

@class SpringComponentDefinition;
@protocol SpringInjectedProperty;
@class SpringComponentInitializer;
@protocol SpringInjectedParameter;

@interface RXMLElement (SpringXmlComponentFactory)
@interface SpringRXMLElement (SpringXmlComponentFactory)

- (SpringComponentDefinition*)asComponentDefinition;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@



#import "RXMLElement+SpringXmlComponentFactory.h"
#import "SpringRXMLElement+SpringXmlComponentFactory.h"
#import "SpringComponentDefinition.h"
#import "SpringInjectedProperty.h"
#import "SpringPropertyInjectedByReference.h"
#import "SpringPropertyInjectedByValue.h"
#import "SpringPropertyInjectedByType.h"
#import "SpringComponentInitializer.h"

@implementation RXMLElement (SpringXmlComponentFactory)
@implementation SpringRXMLElement (SpringXmlComponentFactory)

- (SpringComponentDefinition*)asComponentDefinition
{
Expand Down Expand Up @@ -81,7 +81,7 @@ - (SpringComponentInitializer*)asInitializer
SpringComponentInitializerIsClassMethod isClassMethod = [self handleIsClassMethod:[self attribute:@"is-class-method"]];
SpringComponentInitializer* initializer = [[SpringComponentInitializer alloc] initWithSelector:selector isClassMethod:isClassMethod];

[self iterate:@"*" usingBlock:^(RXMLElement* child)
[self iterate:@"*" usingBlock:^(SpringRXMLElement* child)
{
if ([[child tag] isEqualToString:@"argument"])
{
Expand Down Expand Up @@ -137,7 +137,7 @@ - (NSString*)createOrRetrieveIdComponentId

- (void)parseComponentDefinitionChildren:(SpringComponentDefinition*)componentDefinition
{
[self iterate:@"*" usingBlock:^(RXMLElement* child)
[self iterate:@"*" usingBlock:^(SpringRXMLElement* child)
{
if ([[child tag] isEqualToString:@"property"])
{
Expand All @@ -159,7 +159,7 @@ - (void)parseComponentDefinitionChildren:(SpringComponentDefinition*)componentDe
}];
}

- (void)setArgumentOnInitializer:(SpringComponentInitializer*)initializer withChildTag:(RXMLElement*)child
- (void)setArgumentOnInitializer:(SpringComponentInitializer*)initializer withChildTag:(SpringRXMLElement*)child
{
NSString* name = [child attribute:@"parameterName"];
NSString* reference = [child attribute:@"ref"];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ================================================================================================
// RXMLElement.h
// SpringRXMLElement.h
// Fast processing of XML files
//
// ================================================================================================
Expand Down Expand Up @@ -34,7 +34,7 @@
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>

@interface RXMLElement : NSObject
@interface SpringRXMLElement : NSObject
{
xmlDocPtr doc_;
xmlNodePtr node_;
Expand Down Expand Up @@ -63,16 +63,16 @@
- (double)attributeAsDouble:(NSString *)attributeName;
- (double)attributeAsDouble:(NSString *)attributeName inNamespace:(NSString *)ns;

- (RXMLElement *)child:(NSString *)tag;
- (RXMLElement *)child:(NSString *)tag inNamespace:(NSString *)ns;
- (SpringRXMLElement*)child:(NSString *)tag;
- (SpringRXMLElement*)child:(NSString *)tag inNamespace:(NSString *)ns;

- (NSArray *)children:(NSString *)tag;
- (NSArray *)children:(NSString *)tag inNamespace:(NSString *)ns;
- (NSArray *)childrenWithRootXPath:(NSString *)xpath;

- (void)iterate:(NSString *)query usingBlock:(void (^)(RXMLElement *))blk;
- (void)iterateWithRootXPath:(NSString *)xpath usingBlock:(void (^)(RXMLElement *))blk;
- (void)iterateElements:(NSArray *)elements usingBlock:(void (^)(RXMLElement *))blk;
- (void)iterate:(NSString *)query usingBlock:(void (^)(SpringRXMLElement*))blk;
- (void)iterateWithRootXPath:(NSString *)xpath usingBlock:(void (^)(SpringRXMLElement*))blk;
- (void)iterateElements:(NSArray *)elements usingBlock:(void (^)(SpringRXMLElement*))blk;

@property (nonatomic, readonly) NSString *tag;
@property (nonatomic, readonly) NSString *text;
Expand All @@ -82,5 +82,5 @@

@end

typedef void (^RXMLBlock)(RXMLElement *element);
typedef void (^RXMLBlock)(SpringRXMLElement*element);

Loading

0 comments on commit 53bd457

Please sign in to comment.