Class WrapperNode
Abstract decorator for Nodes to make it easier to layer functionality on top of existing implementations.
Implements
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 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 node is null. |
Properties
| Improve this Doc View SourceGraph
Gets the Graph the Node belongs to.
Declaration
public IGraph Graph { get; }
Property Value
Type | Description |
---|---|
IGraph |
GraphUri
Gets/Sets the Graph URI associated with a Node.
Declaration
public Uri GraphUri { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
Node
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 |
---|---|
System.Int32 |
CompareTo(IGraphLiteralNode)
Declaration
public int CompareTo(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(ILiteralNode)
Declaration
public int CompareTo(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(INode)
Declaration
public int CompareTo(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(IUriNode)
Declaration
public int CompareTo(IUriNode other)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | other |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(IVariableNode)
Declaration
public int CompareTo(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | other |
Returns
Type | Description |
---|---|
System.Int32 |
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 |
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(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 |
---|---|
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 |
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 SourceISerializable.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 |
IXmlSerializable.GetSchema()
Declaration
XmlSchema IXmlSerializable.GetSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema |
IXmlSerializable.ReadXml(XmlReader)
Declaration
void IXmlSerializable.ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader |
IXmlSerializable.WriteXml(XmlWriter)
Declaration
void IXmlSerializable.WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer |
IBlankNode.InternalID
Gets the Internal ID of the Blank Node.
Declaration
string IBlankNode.InternalID { get; }
Returns
Type | Description |
---|---|
System.String |
ILiteralNode.DataType
Gets the DataType URI (if any) of the Literal or null.
Declaration
Uri ILiteralNode.DataType { get; }
Returns
Type | Description |
---|---|
System.Uri |
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 |
ILiteralNode.Value
Gets the Lexical Value of the Literal.
Declaration
string ILiteralNode.Value { get; }
Returns
Type | Description |
---|---|
System.String |
IUriNode.Uri
Gets the URI the Node represents.
Declaration
Uri IUriNode.Uri { get; }
Returns
Type | Description |
---|---|
System.Uri |
Implements
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