Show / Hide Table of Contents

Class WrapperNode

Abstract decorator for Nodes to make it easier to layer functionality on top of existing implementations.
Inheritance
System.Object
WrapperNode
DynamicNode
Path
Report
Result
Implements
IBlankNode
IUriNode
ILiteralNode
INode
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public abstract class WrapperNode : IBlankNode, IUriNode, ILiteralNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable

Constructors

| Improve this Doc View Source

WrapperNode(INode)

Initializes a new instance of the WrapperNode class.
Declaration
protected WrapperNode(INode node)
Parameters
Type Name Description
INode node The node this is a wrapper around.
Exceptions
Type Condition
System.ArgumentNullException When node is null.

Properties

| Improve this Doc View Source

Graph

Gets the Graph the Node belongs to.
Declaration
public IGraph Graph { get; }
Property Value
Type Description
IGraph
| Improve this Doc View Source

GraphUri

Gets/Sets the Graph URI associated with a Node.
Declaration
public Uri GraphUri { get; set; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

Node

Gets the underlying node this is a wrapper around.
Declaration
protected INode Node { get; }
Property Value
Type Description
INode
| Improve this Doc View Source

NodeType

Nodes have a Type.
Declaration
public NodeType NodeType { get; }
Property Value
Type Description
NodeType
Remarks
Primarily provided so can do quick integer comparison to see what type of Node you have without having to do actual full blown Type comparison.

Methods

| Improve this Doc View Source

CompareTo(IBlankNode)

Declaration
public int CompareTo(IBlankNode other)
Parameters
Type Name Description
IBlankNode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(IGraphLiteralNode)

Declaration
public int CompareTo(IGraphLiteralNode other)
Parameters
Type Name Description
IGraphLiteralNode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(ILiteralNode)

Declaration
public int CompareTo(ILiteralNode other)
Parameters
Type Name Description
ILiteralNode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(INode)

Declaration
public int CompareTo(INode other)
Parameters
Type Name Description
INode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(IUriNode)

Declaration
public int CompareTo(IUriNode other)
Parameters
Type Name Description
IUriNode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

CompareTo(IVariableNode)

Declaration
public int CompareTo(IVariableNode other)
Parameters
Type Name Description
IVariableNode other
Returns
Type Description
System.Int32
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

Equals(IBlankNode)

Declaration
public bool Equals(IBlankNode other)
Parameters
Type Name Description
IBlankNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(IGraphLiteralNode)

Declaration
public bool Equals(IGraphLiteralNode other)
Parameters
Type Name Description
IGraphLiteralNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(ILiteralNode)

Declaration
public bool Equals(ILiteralNode other)
Parameters
Type Name Description
ILiteralNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(INode)

Declaration
public bool Equals(INode other)
Parameters
Type Name Description
INode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(IUriNode)

Declaration
public bool Equals(IUriNode other)
Parameters
Type Name Description
IUriNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(IVariableNode)

Declaration
public bool Equals(IVariableNode other)
Parameters
Type Name Description
IVariableNode other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

ToString()

Gets the String representation of the Node.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
| Improve this Doc View Source

ToString(INodeFormatter)

Gets the String representation of the Node formatted with the given Node formatter.
Declaration
public string ToString(INodeFormatter formatter)
Parameters
Type Name Description
INodeFormatter formatter Formatter.
Returns
Type Description
System.String
| Improve this Doc View Source

ToString(INodeFormatter, TripleSegment)

Gets the String representation of the Node formatted with the given Node formatter.
Declaration
public string ToString(INodeFormatter formatter, TripleSegment segment)
Parameters
Type Name Description
INodeFormatter formatter Formatter.
TripleSegment segment Triple Segment.
Returns
Type Description
System.String

Explicit Interface Implementations

| Improve this Doc View Source

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context
| Improve this Doc View Source

IXmlSerializable.GetSchema()

Declaration
XmlSchema IXmlSerializable.GetSchema()
Returns
Type Description
System.Xml.Schema.XmlSchema
| Improve this Doc View Source

IXmlSerializable.ReadXml(XmlReader)

Declaration
void IXmlSerializable.ReadXml(XmlReader reader)
Parameters
Type Name Description
System.Xml.XmlReader reader
| Improve this Doc View Source

IXmlSerializable.WriteXml(XmlWriter)

Declaration
void IXmlSerializable.WriteXml(XmlWriter writer)
Parameters
Type Name Description
System.Xml.XmlWriter writer
| Improve this Doc View Source

IBlankNode.InternalID

Gets the Internal ID of the Blank Node.
Declaration
string IBlankNode.InternalID { get; }
Returns
Type Description
System.String
| Improve this Doc View Source

ILiteralNode.DataType

Gets the DataType URI (if any) of the Literal or null.
Declaration
Uri ILiteralNode.DataType { get; }
Returns
Type Description
System.Uri
| Improve this Doc View Source

ILiteralNode.Language

Gets the Language specifier (if any) of the Literal or the Empty String.
Declaration
string ILiteralNode.Language { get; }
Returns
Type Description
System.String
| Improve this Doc View Source

ILiteralNode.Value

Gets the Lexical Value of the Literal.
Declaration
string ILiteralNode.Value { get; }
Returns
Type Description
System.String
| Improve this Doc View Source

IUriNode.Uri

Gets the URI the Node represents.
Declaration
Uri IUriNode.Uri { get; }
Returns
Type Description
System.Uri

Implements

IBlankNode
IUriNode
ILiteralNode
INode
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsListRoot(INode, IGraph)
Extensions.CopyNode(INode, IGraph)
Extensions.CopyNode(INode, IGraph, Boolean)
DynamicExtensions.AsDynamic(INode, Uri)
ValuedNodeExtensions.AsValuedNode(INode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • WrapperNode(INode)
  • Properties
    • Graph
    • GraphUri
    • Node
    • NodeType
  • Methods
    • CompareTo(IBlankNode)
    • CompareTo(IGraphLiteralNode)
    • CompareTo(ILiteralNode)
    • CompareTo(INode)
    • CompareTo(IUriNode)
    • CompareTo(IVariableNode)
    • Equals(Object)
    • Equals(IBlankNode)
    • Equals(IGraphLiteralNode)
    • Equals(ILiteralNode)
    • Equals(INode)
    • Equals(IUriNode)
    • Equals(IVariableNode)
    • GetHashCode()
    • ToString()
    • ToString(INodeFormatter)
    • ToString(INodeFormatter, TripleSegment)
  • Explicit Interface Implementations
    • ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    • IXmlSerializable.GetSchema()
    • IXmlSerializable.ReadXml(XmlReader)
    • IXmlSerializable.WriteXml(XmlWriter)
    • IBlankNode.InternalID
    • ILiteralNode.DataType
    • ILiteralNode.Language
    • ILiteralNode.Value
    • IUriNode.Uri
  • Implements
  • Extension Methods
Back to top Generated by DocFX