Show / Hide Table of Contents

Class NodeFactoryFactory

Configuration factory for creating NodeFactory instances.

Inheritance
object
NodeFactoryFactory
Implements
IObjectFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class NodeFactoryFactory : IObjectFactory

Methods

| Edit this page View Source

CanLoadObject(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
| Edit this page View Source

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.

Implements

IObjectFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • CanLoadObject(Type)
    • TryLoadObject(IGraph, INode, Type, out object)
  • Implements
  • Extension Methods
Back to top Generated by DocFX