Skip to content

Commit

Permalink
Use properties like latest NSXML headers
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisballinger committed Jul 8, 2016
1 parent 7dfa625 commit 749f439
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion KissXML/DDXMLDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ NS_ASSUME_NONNULL_BEGIN

//- (void)replaceChildAtIndex:(NSUInteger)index withNode:(DDXMLNode *)node;

- (NSData *)XMLData;
@property (readonly, copy) NSData *XMLData;
- (NSData *)XMLDataWithOptions:(NSUInteger)options;

//- (instancetype)objectByApplyingXSLT:(NSData *)xslt arguments:(NSDictionary *)arguments error:(NSError **)error;
Expand Down
38 changes: 19 additions & 19 deletions KissXML/DDXMLNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,43 +80,43 @@ NS_ASSUME_NONNULL_BEGIN

#pragma mark --- Properties ---

- (DDXMLNodeKind)kind;
@property (readonly) DDXMLNodeKind kind;

@property (nullable, copy) NSString *name; //primitive
@property (nullable, copy) NSString *name;

//- (void)setObjectValue:(id)value;
//- (instancetype)objectValue;

@property (nullable, copy) NSString *stringValue; //primitive
@property (nullable, copy) NSString *stringValue;

//- (void)setStringValue:(NSString *)string resolvingEntities:(BOOL)resolve;

#pragma mark --- Tree Navigation ---

- (NSUInteger)index;

- (NSUInteger)level;
@property (readonly) NSUInteger index;
@property (readonly) NSUInteger level;

- (nullable DDXMLDocument *)rootDocument;
@property (nullable, readonly, retain) DDXMLDocument *rootDocument;

- (nullable DDXMLNode *)parent;
- (NSUInteger)childCount;
- (nullable NSArray<DDXMLNode *> *)children;
@property (nullable, readonly, copy) DDXMLNode *parent;
@property (readonly) NSUInteger childCount;
@property (nullable, readonly, copy) NSArray<DDXMLNode *> *children;
- (nullable DDXMLNode *)childAtIndex:(NSUInteger)index;

- (nullable DDXMLNode *)previousSibling;
- (nullable DDXMLNode *)nextSibling;
@property (nullable, readonly, copy) DDXMLNode *previousSibling;
@property (nullable, readonly, copy) DDXMLNode *nextSibling;

- (nullable DDXMLNode *)previousNode;
- (nullable DDXMLNode *)nextNode;
@property (nullable, readonly, copy) DDXMLNode *previousNode;
@property (nullable, readonly, copy) DDXMLNode *nextNode;

- (void)detach;

- (nullable NSString *)XPath;
@property (nullable, readonly, copy) NSString *XPath;

#pragma mark --- QNames ---

- (nullable NSString *)localName;
- (nullable NSString *)prefix;
@property (nullable, readonly, copy) NSString *localName;
@property (nullable, readonly, copy) NSString *prefix;

@property (nullable, copy) NSString *URI; //primitive

Expand All @@ -126,8 +126,8 @@ NS_ASSUME_NONNULL_BEGIN

#pragma mark --- Output ---

- (nonnull NSString *)description;
- (nonnull NSString *)XMLString;
@property (readonly, copy) NSString *description;
@property (readonly, copy) NSString *XMLString;
- (nonnull NSString *)XMLStringWithOptions:(NSUInteger)options;
//- (NSString *)canonicalXMLStringPreservingComments:(BOOL)comments;

Expand Down

0 comments on commit 749f439

Please sign in to comment.