RSSKit 0.6.1
|
#import <RSSArticleProtocol.h>
Instance Methods | |
(NSString *) | - headline |
(NSString *) | - url |
(NSString *) | - content |
(NSArray *) | - links |
(NSDate *) | - date |
(NSURL *) | - enclosure |
(id< RSSFeed >) | - feed |
(BOOL) | - store |
(void) | - willBeReplacedByArticle: |
Classes implementing this protocol can be used as RSSArticles.
- (NSString *) content |
Reimplemented in RSSArticle.
- (NSDate *) date |
Returns the date of the publication of the article. If the source feed of this article didn't contain information about this date, the fetching date is usually returned.
Reimplemented in RSSArticle.
- (NSURL *) enclosure |
Returns the Enclosure object of this article as URL. If there is no enclosure object, nil is returned.
Reimplemented in RSSArticle.
- (id< RSSFeed >) feed |
Returns the source feed of this article.
If you want to make sure the object exists, you have to follow these rules:
setFeed:
(Colon!) method. - (NSString *) headline |
Reimplemented in RSSArticle.
- (NSArray *) links |
Returns an NSArray containing NSURL objects or nil, if there are none. The contained NSURL objects often have the "type" and "rel" properties set. See the documentation for addLink: for details.
Reimplemented in RSSArticle.
- (BOOL) store |
Saves the article to the URL that's calculated by the RSSFactory.
Reimplemented in RSSArticle.
- (NSString *) url |
Reimplemented in RSSArticle.
- (void) willBeReplacedByArticle: | (id) | newArticle |
This method is intended to make sure that the replacing article keeps some fields from the old (this) article. Subclasses will probably want to override this, but shouldn't forget calling the super implementation, first.