Class ChainedHandler
A Handler which passes the RDF to be handled through a sequence of Handlers where Handling is terminated as soon as any Handler returns false.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class ChainedHandler : BaseRdfHandler, ICommentRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Remarks
This differs from the MultiHandler in that as soon as any Handler indicates that handling should stop by returning false handling is immediately terminated. All Handlers will always have their StartRdf and EndRdf methods called.
Constructors
| Edit this page View SourceChainedHandler(IEnumerable<IRdfHandler>)
Creates a new Chained Handler.
Declaration
public ChainedHandler(IEnumerable<IRdfHandler> handlers)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IRdfHandler> | handlers | Inner Handlers to use. |
Properties
| Edit this page View SourceAcceptsAll
Gets that this Handler accepts all Triples if all inner handlers do so.
Declaration
public override bool AcceptsAll { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceInnerHandlers
Gets the Inner Handlers used by this Handler.
Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IRdfHandler> |
Methods
| Edit this page View SourceEndRdfInternal(bool)
Ends the Handling of RDF for each inner handler.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | ok | Whether parsing completed without errors. |
Overrides
| Edit this page View SourceHandleBaseUriInternal(Uri)
Handles Base URIs by getting each inner handler to attempt to handle it.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | baseUri | Base URI. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Handling terminates at the first Handler which indicates handling should stop.
HandleCommentInternal(string)
Handles Comments by getting each inner handler to attempt to handle it.
Declaration
protected override bool HandleCommentInternal(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Comment text. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Handling terminates at the first Handler which indicates handling should stop.
HandleNamespaceInternal(string, Uri)
Handles Namespaces by getting each inner handler to attempt to handle it.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix | Namespace Prefix. |
| Uri | namespaceUri | Namespace URI. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Handling terminates at the first Handler which indicates handling should stop.
HandleQuadInternal(Triple, IRefNode)
Handles Quads by getting each inner handler to attempt to handle it.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
| Type | Name | Description |
|---|---|---|
| Triple | t | Triple. |
| IRefNode | graph | The name of the graph containing the triple. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Handling terminates at the first Handler which indicates handling should stop.
HandleTripleInternal(Triple)
Handles Triples by getting each inner handler to attempt to handle it.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
| Type | Name | Description |
|---|---|---|
| Triple | t | Triple. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
Handling terminates at the first Handler which indicates handling should stop.
StartRdfInternal()
Starts the Handling of RDF for each inner handler.
Declaration
protected override void StartRdfInternal()