Class WrapperNode
Abstract decorator for Nodes to make it easier to layer functionality on top of existing implementations.
Implements
System.IComparable<T><INode>
System.IComparable<T><IBlankNode>
System.IComparable<T><IGraphLiteralNode>
System.IComparable<T><ILiteralNode>
System.IComparable<T><IUriNode>
System.IComparable<T><IVariableNode>
System.IComparable<T><IRefNode>
System.IComparable<T><ITripleNode>
System.IEquatable<T><INode>
System.IEquatable<T><IBlankNode>
System.IEquatable<T><IGraphLiteralNode>
System.IEquatable<T><ILiteralNode>
System.IEquatable<T><IUriNode>
System.IEquatable<T><IVariableNode>
System.IEquatable<T><IRefNode>
System.IEquatable<T><ITripleNode>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class WrapperNode : IBlankNode, IUriNode, IRefNode, ILiteralNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IComparable<IRefNode>, IComparable<ITripleNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, IEquatable<IRefNode>, IEquatable<ITripleNode>
Constructors
| Improve this Doc View SourceWrapperNode(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 |
Properties
| Improve this Doc View SourceNode
Gets the underlying node this is a wrapper around.
Declaration
protected INode Node { get; }
Property Value
Type | Description |
---|---|
INode |
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 SourceCompareTo(IBlankNode)
Declaration
public int CompareTo(IBlankNode other)
Parameters
Type | Name | Description |
---|---|---|
IBlankNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(IGraphLiteralNode)
Declaration
public int CompareTo(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(ILiteralNode)
Declaration
public int CompareTo(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(INode)
Declaration
public int CompareTo(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(IRefNode)
Declaration
public int CompareTo(IRefNode other)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(ITripleNode)
Declaration
public int CompareTo(ITripleNode other)
Parameters
Type | Name | Description |
---|---|---|
ITripleNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(IUriNode)
Declaration
public int CompareTo(IUriNode other)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | other |
Returns
Type | Description |
---|---|
int |
CompareTo(IVariableNode)
Declaration
public int CompareTo(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | other |
Returns
Type | Description |
---|---|
int |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
object.Equals(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 |
Equals(IGraphLiteralNode)
Declaration
public bool Equals(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(ILiteralNode)
Declaration
public bool Equals(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(INode)
Declaration
public bool Equals(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(IRefNode)
Declaration
public bool Equals(IRefNode other)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(ITripleNode)
Declaration
public bool Equals(ITripleNode other)
Parameters
Type | Name | Description |
---|---|---|
ITripleNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(IUriNode)
Declaration
public bool Equals(IUriNode other)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(IVariableNode)
Declaration
public bool Equals(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Provides a string representation of this node.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
object.ToString()
|
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 |
---|---|
string |
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 |
---|---|
string |
Implements
System.IComparable<T>
System.IComparable<T>
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.IEquatable<T>
System.IEquatable<T>