Class MultiHandler
A Handler which passes the RDF to be handled to multiple Handlers where Handling terminates in the handling request where one of the Handlers returns false.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRDF.dll
Syntax
public class MultiHandler : BaseRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Remarks
This differs from ChainedHandler in that even if one Handler indicates that handling should stop by returning false all the Handlers still have a chance to handle the Base URI/Namespace/Triple before handling is terminated. All Handlers will always have their StartRdf and EndRdf methods called.
Constructors
| Improve this Doc View SourceMultiHandler(IEnumerable<IRdfHandler>)
Creates a new Multi Handler.
Declaration
public MultiHandler(IEnumerable<IRdfHandler> handlers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IRdfHandler> | handlers | Inner Handlers for this Handler. |
MultiHandler(IEnumerable<IRdfHandler>, INodeFactory)
Creates a new Multi Handler with a known Node Factory.
Declaration
public MultiHandler(IEnumerable<IRdfHandler> handlers, INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IRdfHandler> | handlers | Inner Handlers for this Handler. |
INodeFactory | factory | Node Factory to use for this Handler. |
Properties
| Improve this Doc View SourceAcceptsAll
Gets whether this Handler accepts all Triples based on whether all inner handlers do so.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceInnerHandlers
Gets the Inner Handlers used by this Handler.
Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IRdfHandler> |
Methods
| Improve this Doc View SourceEndRdfInternal(Boolean)
Ends RDF Handling by ending handling on all inner handlers.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Whether parsing completed without error. |
Overrides
| Improve this Doc View SourceHandleBaseUriInternal(Uri)
Handles Base URIs by getting all inner handlers to handle the Base URI.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.
|
Improve this Doc
View Source
HandleNamespaceInternal(String, Uri)
Handles Namespace Declarations by getting all inner handlers to handle it.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | Namespace Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.
|
Improve this Doc
View Source
HandleTripleInternal(Triple)
Handles Triples by getting all inner handlers to handler it.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Handling ends if any of the Handlers indicates it should stop but all Handlers are given the chance to finish the current handling action first.
|
Improve this Doc
View Source
StartRdfInternal()
Starts RDF Handling by starting handling on all inner handlers.
Declaration
protected override void StartRdfInternal()