C# Class Rubber.DSL.Sort.ScriptSortBuilder

Script sort builder allows to sort based on a custom script expression.
Inheritance: ISortBuilder
ファイルを表示 Open project: stephenpope/Rubber

Public Methods

Method Description
Lang ( string lang ) : ScriptSortBuilder

The language of the script.

Missing ( object missing ) : ISortBuilder

Not really relevant.

Order ( SortOrder order ) : ISortBuilder

Sets the sort order.

Param ( string name, object value ) : ScriptSortBuilder

A parameter that will be passed to the script.

ScriptSortBuilder ( string script, string type ) : System.Collections.Generic

Constructs a script sort builder with the script and the type.

ToJsonObject ( ) : object
ToString ( ) : string

Method Details

Lang() public method

The language of the script.
public Lang ( string lang ) : ScriptSortBuilder
lang string
return ScriptSortBuilder

Missing() public method

Not really relevant.
public Missing ( object missing ) : ISortBuilder
missing object
return ISortBuilder

Order() public method

Sets the sort order.
public Order ( SortOrder order ) : ISortBuilder
order SortOrder
return ISortBuilder

Param() public method

A parameter that will be passed to the script.
public Param ( string name, object value ) : ScriptSortBuilder
name string The name of the script parameter.
value object The value of the script parameter.
return ScriptSortBuilder

ScriptSortBuilder() public method

Constructs a script sort builder with the script and the type.
public ScriptSortBuilder ( string script, string type ) : System.Collections.Generic
script string The script to use.
type string The type, can either be "string" or "number".
return System.Collections.Generic

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string