Class BaseUnaryDateTimeFunction
Abstract Base Class for functions which are Unary functions applied to Date Time objects in the XPath function library.
Inheritance
System.Object
BaseUnaryDateTimeFunction
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Expressions.Functions.XPath.DateTime
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseUnaryDateTimeFunction : BaseUnaryExpression, ISparqlExpression
Constructors
| Improve this Doc View SourceBaseUnaryDateTimeFunction(ISparqlExpression)
Creates a new Unary XPath Date Time function.
Declaration
public BaseUnaryDateTimeFunction(ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr |
Properties
| Improve this Doc View SourceType
Gets the Type of the Expression.
Declaration
public override SparqlExpressionType Type { get; }
Property Value
Type | Description |
---|---|
SparqlExpressionType |
Overrides
Methods
| Improve this Doc View SourceEvaluate(SparqlEvaluationContext, Int32)
Gets the numeric value of the function in the given Evaluation Context for the given Binding ID.
Declaration
public override IValuedNode Evaluate(SparqlEvaluationContext context, int bindingID)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Int32 | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
IValuedNode |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the Function.
Declaration
public abstract override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceValueInternal(DateTimeOffset)
Abstract method which derived classes must implement to generate the actual numeric value for the function.
Declaration
protected abstract IValuedNode ValueInternal(DateTimeOffset dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTimeOffset | dateTime | Date Time. |
Returns
Type | Description |
---|---|
IValuedNode |