RedlandURI Class Reference
Inherits from | RedlandWrappedObject : NSObject |
Conforms to | NSCoding NSCopying |
Declared in | RedlandURI.h RedlandURI.m |
Overview
A RedlandURI provides simple URI functionality like storage and comparison.
This class wraps librdf_uri objects. As of this version, only the most basic librdf_uri functions of the Redland library are represented in these bindings. It is recommended to use Cocoa’s NSURL class whenever possible. Instances of the RedlandURI class conform to the NSCopying and NSCoding protocols.
Convenience method for RedlandURI
Tasks
Other Methods
-
+ URIWithString:
Convenience allocator.
-
+ URIWithURL:
Convenience allocator.
-
– initWithString:
Initializes the receiver from an NSString; the designated initializer.
-
– initWithURL:
Initializes the receiver with the absolute string of a URL.
-
– wrappedURI
Returns the underlying librdf_uri pointer of the receiver.
-
– stringValue
Returns the URI of the receiver as an NSString.
-
– URLValue
Returns the URI of the receiver as an NSURL.
-
– isEqualToURI:
Returns YES if otherURI is equal to the receiver.
Other Methods
-
– isEqual:
Overridden to return
isEqualToURI:
if otherObject is also a kind of RedlandURI; in all other cases, NO is returned.
Class Methods
Instance Methods
URLValue
Returns the URI of the receiver as an NSURL.
- (NSURL *)URLValue
Discussion
Returns the URI of the receiver as an NSURL.
Declared In
RedlandURI.m
initWithString:
Initializes the receiver from an NSString; the designated initializer.
- (id)initWithString:(NSString *)aString
Parameters
- aString
An URI-string
Discussion
Initializes the receiver from an NSString; the designated initializer.
Declared In
RedlandURI.m
initWithURL:
Initializes the receiver with the absolute string of a URL.
- (id)initWithURL:(NSURL *)aURL
Parameters
- aURL
An URL
Discussion
Initializes the receiver with the absolute string of a URL.
Declared In
RedlandURI.m
isEqual:
Overridden to return isEqualToURI:
if otherObject is also a kind of RedlandURI; in all other cases, NO is returned.
- (BOOL)isEqual:(id)otherObject
Parameters
- otherObject
The object to compare against
Discussion
Overridden to return isEqualToURI:
if otherObject is also a kind of RedlandURI; in all other cases, NO is returned.
Declared In
RedlandURI.m
isEqualToURI:
Returns YES if otherURI is equal to the receiver.
- (BOOL)isEqualToURI:(RedlandURI *)otherURI
Parameters
- otherURI
The other instance to compare to
Discussion
Returns YES if otherURI is equal to the receiver.
Declared In
RedlandURI.m