Show / Hide Table of Contents

Class CancellableHandler

A RDF Handler which wraps another Handler allowing handling to be cancelled.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
CancellableHandler
Implements
IWrappingRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.ResolveQName(string)
BaseHandler.BaseUri
BaseHandler.NamespaceMap
BaseHandler.UriFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(string)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(string, Uri)
BaseHandler.CreateLiteralNode(string)
BaseHandler.CreateLiteralNode(string, string)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateUriNode(string)
BaseHandler.CreateUriNode()
BaseHandler.CreateVariableNode(string)
BaseHandler.CreateTripleNode(Triple)
BaseHandler.GetNextBlankNodeID()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class CancellableHandler : BaseRdfHandler, IWrappingRdfHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

CancellableHandler(IRdfHandler)

Creates a new Cancellable Handler.

Declaration
public CancellableHandler(IRdfHandler handler)
Parameters
Type Name Description
IRdfHandler handler

Properties

| Improve this Doc View Source

AcceptsAll

Gets that this Handler does not accept all Triples.

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseRdfHandler.AcceptsAll
| Improve this Doc View Source

InnerHandlers

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 Source

Cancel()

Informs the Handler that it should cancel handling at the next point possible assuming handling has not already completed.

Declaration
public void Cancel()
| Improve this Doc View Source

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
BaseRdfHandler.EndRdfInternal(bool)
| Improve this Doc View Source

HandleBaseUriInternal(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
BaseRdfHandler.HandleBaseUriInternal(Uri)
| Improve this Doc View Source

HandleNamespaceInternal(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
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
| Improve this Doc View Source

HandleQuadInternal(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
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
| Improve this Doc View Source

HandleTripleInternal(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
BaseRdfHandler.HandleTripleInternal(Triple)
| Improve this Doc View Source

StartRdfInternal()

Starts RDF Handling on the inner Handler.

Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

IWrappingRdfHandler
IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • CancellableHandler(IRdfHandler)
  • Properties
    • AcceptsAll
    • InnerHandlers
  • Methods
    • Cancel()
    • EndRdfInternal(bool)
    • HandleBaseUriInternal(Uri)
    • HandleNamespaceInternal(string, Uri)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX