A class that can generate Objective-C classes from Indivo XML schemas.
More...
#import <INClassGenerator.h>
Inherits NSObject, and <INSchemaParserDelegate>.
A class that can generate Objective-C classes from Indivo XML schemas.
+ (NSString *) applySubstitutions: |
|
(NSDictionary *) |
substitutions |
toTemplate: |
|
(NSString *) |
aTemplate |
|
|
| |
This method applies substitutions found in a dictionary to a template.
It currently is very cheaply implemented using RegExes and only recognizes {% if VAR_NAME %} and {{ VAR_NAME }} and does not allow nesting.
+ (NSString *) applyToBodyTemplate: |
|
(NSDictionary *) |
substitutions |
|
+ (NSString *) applyToHeaderTemplate: |
|
(NSDictionary *) |
substitutions |
|
- (BOOL) ignoresType: |
|
(NSString *) |
typeName |
|
- (void) runFrom: |
|
(NSString *) |
inputPath |
into: |
|
(NSString *) |
outDirectory |
callback: |
|
(INCancelErrorBlock) |
aCallback |
|
|
| |
Run all the XSD schemas we find.
Schema files must have the .xsd extension.
- Parameters
-
inputPath | A path to a directory containing XSD files or a path to one XSD file. A directory will be recursively searched. |
outDirectory | The directory to write the class files to |
aCallback | Completion block |
- (BOOL) mayOverwriteExisting |
|
readwritenonatomicassign |
NO by default, if YES will overwrite existing classes.
- (NSUInteger) numClassesGenerated |
|
readwritenonatomicassign |
- (NSUInteger) numClassesNotOverwritten |
|
readwritenonatomicassign |
- (NSUInteger) numSchemasParsed |
|
readwritenonatomicassign |
The documentation for this class was generated from the following files:
- IndivoFramework/ClassGenerator/INClassGenerator.h
- IndivoFramework/ClassGenerator/INClassGenerator.m