RedlandWorld Class Reference
| Inherits from | RedlandWrappedObject : NSObject |
| Declared in | RedlandWorld.h RedlandWorld.m |
Overview
Global context for all Redland functions.
Wraps librdf_world objects. This framework takes care of creating a RedlandWorld instance for you. There is currently no way to create an instance manually in this version of the framework, and all operations currently use the default instance.
Tasks
-
logsErrorsIf YES, the receiver will log all Redland errors to the console (in addition to generating exceptions, where appropriate). NO by default.
property -
+ defaultWorldReturns the default RedlandWorld instance.
-
+ defaultWrappedWorldReturns the underlying librdf_world pointer of the default RedlandWorld instance.
-
– wrappedWorldReturns the underlying librdf_world pointer of the receiver.
-
– handleLogMessage:Adds an librdf_log_message to the internal storedErrors array. Errors are collected until [RedlandWorld handleStoredErrors] is called, which then throws an exception with all collected errors.
-
– handleStoredErrorsChecks if there are any collected errors, in which case it throws an exception with the error array inside userInfo dictionary.
-
– valueOfFeature:Returns the value of the world feature identified by featureURI.
-
– setValue:ofFeature:Sets the world feature identified by featureURI to a new value.
Properties
logsErrors
If YES, the receiver will log all Redland errors to the console (in addition to generating exceptions, where appropriate). NO by default.
@property (nonatomic, assign) BOOL logsErrorsDiscussion
If YES, the receiver will log all Redland errors to the console (in addition to generating exceptions, where appropriate). NO by default.
Declared In
RedlandWorld.hClass Methods
Instance Methods
handleLogMessage:
Adds an librdf_log_message to the internal storedErrors array. Errors are collected until [RedlandWorld handleStoredErrors] is called, which then throws an exception with all collected errors.
- (int)handleLogMessage:(librdf_log_message *)aMessageParameters
- aMessage
A librdf_log_message pointer.
Discussion
Adds an librdf_log_message to the internal storedErrors array. Errors are collected until [RedlandWorld handleStoredErrors] is called, which then throws an exception with all collected errors.
Warning: Behavior of this method is subject to change. Do not use.
Declared In
RedlandWorld.mhandleStoredErrors
Checks if there are any collected errors, in which case it throws an exception with the error array inside userInfo dictionary.
- (void)handleStoredErrorsDiscussion
Checks if there are any collected errors, in which case it throws an exception with the error array inside userInfo dictionary.
Warning: Behavior of this method is subject to change. Do not use.
Declared In
RedlandWorld.msetValue:ofFeature:
Sets the world feature identified by featureURI to a new value.
- (void)setValue:(RedlandNode *)featureValue ofFeature:(id)featureURIParameters
- featureValue
A RedlandNode representing the new value
- featureURI
An NSString or a RedlandURI instance
Discussion
Sets the world feature identified by featureURI to a new value.
Warning: Raises a RedlandException is no such feature exists.
Declared In
RedlandWorld.mvalueOfFeature:
Returns the value of the world feature identified by featureURI.
- (RedlandNode *)valueOfFeature:(id)featureURIParameters
- featureURI
An NSString or a RedlandURI instance
Discussion
Returns the value of the world feature identified by featureURI.
Declared In
RedlandWorld.m