C# Class Hapikit.Templates.UriTemplate

Exibir arquivo Open project: hapikit/hapikit.net Class Usage Examples

Public Methods

Method Description
ClearParameter ( string name ) : void
GetParameterNames ( ) : IEnumerable
Resolve ( ) : string
SetParameter ( string name, string>.IDictionary value ) : void
SetParameter ( string name, IEnumerable value ) : void
SetParameter ( string name, object value ) : void
SetParameter ( string name, string value ) : void
ToString ( ) : string
UriTemplate ( string template, bool resolvePartially = false, bool caseInsensitiveParameterNames = false ) : System

Private Methods

Method Description
GetOperator ( char operatorIndicator ) : OperatorInfo
IsVarNameChar ( char c ) : bool
ProcessExpression ( StringBuilder currentExpression ) : void
ProcessVariable ( VarSpec varSpec, bool multiVariableExpression = false ) : bool

Method Details

ClearParameter() public method

public ClearParameter ( string name ) : void
name string
return void

GetParameterNames() public method

public GetParameterNames ( ) : IEnumerable
return IEnumerable

Resolve() public method

public Resolve ( ) : string
return string

SetParameter() public method

public SetParameter ( string name, string>.IDictionary value ) : void
name string
value string>.IDictionary
return void

SetParameter() public method

public SetParameter ( string name, IEnumerable value ) : void
name string
value IEnumerable
return void

SetParameter() public method

public SetParameter ( string name, object value ) : void
name string
value object
return void

SetParameter() public method

public SetParameter ( string name, string value ) : void
name string
value string
return void

ToString() public method

public ToString ( ) : string
return string

UriTemplate() public method

public UriTemplate ( string template, bool resolvePartially = false, bool caseInsensitiveParameterNames = false ) : System
template string
resolvePartially bool
caseInsensitiveParameterNames bool
return System