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

Other Methods

  • – isEqual:

    Overridden to return isEqualToURI: if otherObject is also a kind of RedlandURI; in all other cases, NO is returned.

Class Methods

URIWithString:

Convenience allocator.

+ (RedlandURI *)URIWithString:(NSString *)aString

Parameters

aString

An URI-string

Return Value

a new RedlandURI instance initialized from an NSString.

Discussion

Convenience allocator.

Declared In

RedlandURI.m

URIWithURL:

Convenience allocator.

+ (RedlandURI *)URIWithURL:(NSURL *)aURL

Parameters

aURL

The URL to use as an NSURL object

Return Value

a new RedlandURI instance initialized from the absoluteString of the given NSURL.

Discussion

Convenience allocator.

Declared In

RedlandURI.m

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

stringValue

Returns the URI of the receiver as an NSString.

- (NSString *)stringValue

Discussion

Returns the URI of the receiver as an NSString.

Declared In

RedlandURI.m

wrappedURI

Returns the underlying librdf_uri pointer of the receiver.

- (librdf_uri *)wrappedURI

Discussion

Returns the underlying librdf_uri pointer of the receiver.

Declared In

RedlandURI.m