Class CancellableHandler
A RDF Handler which wraps another Handler allowing handling to be cancelled.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class CancellableHandler : BaseRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory
Constructors
| Improve this Doc View SourceCancellableHandler(IRdfHandler)
Creates a new Cancellable Handler.
Declaration
public CancellableHandler(IRdfHandler handler)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler |
Properties
| Improve this Doc View SourceAcceptsAll
Gets that this Handler does not accept all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceInnerHandlers
Gets the Inner Handler wrapped by this Handler.
Declaration
public IEnumerable<IRdfHandler> InnerHandlers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><IRdfHandler> |
Methods
| Improve this Doc View SourceCancel()
Informs the Handler that it should cancel handling at the next point possible assuming handling has not already completed.
Declaration
public void Cancel()
EndRdfInternal(bool)
Ends RDF Handling on the inner Handler.
Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ok | Indicates whether parsing completed without error. |
Overrides
| Improve this Doc View SourceHandleBaseUriInternal(Uri)
Handles Base URIs by passing them to the inner handler and cancelling handling if it has been requested.
Declaration
protected override bool HandleBaseUriInternal(Uri baseUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleNamespaceInternal(string, Uri)
Handles Namespace Declarations by passing them to the inner handler and cancelling handling if it has been requested.
Declaration
protected override bool HandleNamespaceInternal(string prefix, Uri namespaceUri)
Parameters
Type | Name | Description |
---|---|---|
string | prefix | Namespace Prefix. |
System.Uri | namespaceUri | Namespace URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleQuadInternal(Triple, IRefNode)
Handles Quads by passing them to the inner handler and cancelling handling if it has been requested.
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 |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleTripleInternal(Triple)
Handles Triples by passing them to the inner handler and cancelling handling if it has been requested.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartRdfInternal()
Starts RDF Handling on the inner Handler.
Declaration
protected override void StartRdfInternal()