Class UriFactoryFactory
An object factory for constructing IUriFactory instances.
Implements
Inherited Members
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class UriFactoryFactory : IObjectFactory
Methods
| Edit this page View SourceCanLoadObject(Type)
Returns whether this Factory is capable of creating objects of the given type.
Declaration
public bool CanLoadObject(Type t)
Parameters
Type | Name | Description |
---|---|---|
Type | t | Target Type. |
Returns
Type | Description |
---|---|
bool |
TryLoadObject(IGraph, INode, Type, out object)
Attempts to load an Object of the given type identified by the given Node and returned as the Type that this loader generates.
Declaration
public bool TryLoadObject(IGraph g, INode objNode, Type targetType, out object obj)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Configuration Graph. |
INode | objNode | Object Node. |
Type | targetType | Target Type. |
object | obj | Created Object. |
Returns
Type | Description |
---|---|
bool | True if the loader succeeded in creating an Object. |
Remarks
The Factory should not throw an error if some required configuration is missing as another factory further down the processing chain may still be able to create the object. If the factory encounters errors and all the required configuration information is present then that error should be thrown i.e. class instantiation throws an error or a call to load an object that this object requires fails.