RSSKit 0.6.1
|
#import <RSSLinks.h>
Inherits NSURL.
Inherited by RSSAlternativeLink, RSSEnclosureLink, RSSRelatedLink, and RSSViaLink.
Instance Methods | |
(id) | - initWithString:andType: |
(NSString *) | - relationType |
(NSString *) | - fileType |
Class Methods | |
(id) | + linkWithString:andRel:andType: |
A link that is used in a RSSArticle. You can find these in the array returned by the -links method in RSSArticle.
This inherits from NSURL and has special extra attributes.
- (NSString *) fileType |
Returns the file type of the file that this link points to.
- (id) initWithString: | (NSString*) | aURLString | |
andType: | (NSString*) | aType | |
+ (id) linkWithString: | (NSString*) | aURLString | |
andRel: | (NSString*) | aRelation | |
andType: | (NSString*) | aType | |
Factory method that returns a RSSLink with the given attributes.
Relation type is one of:
The nil
relation type defaults to "related".
These relation types are compatible with the ones of the ATOM specification. For details, see the ATOM specification.
aURLString | the URL of the link as string |
aRelation | one of "alternate", "enclosure", "related", "self", "via", nil |
aType | the file type as string |
- (NSString *) relationType |
Returns the type of this relation. This is one of "alternate", "enclosure", "related", "self", "via".