C# Class Tavis.UriTemplates.UriTemplate

Mostra file Open project: tavis-software/Tavis.UriTemplates Class Usage Examples

Public Methods

Method Description
ClearParameter ( string name ) : void
CreateMatchingRegex ( string uriTemplate ) : string
CreateMatchingRegex2 ( string uriTemplate ) : string
GetParameterNames ( ) : IEnumerable
GetParameters ( Uri uri ) : object>.IDictionary
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
GetExpression ( List paramNames, string prefix = null ) : string
GetOperator ( char operatorIndicator ) : Tavis.UriTemplates.OperatorInfo
GetQueryExpression ( List paramNames, string prefix ) : string
IsVarNameChar ( char c ) : bool
ProcessExpression ( StringBuilder currentExpression, Result result ) : void
ProcessVariable ( Tavis.UriTemplates.VarSpec varSpec, Result result, bool multiVariableExpression = false ) : bool
ResolveResult ( ) : Result

Method Details

ClearParameter() public method

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

CreateMatchingRegex() public static method

public static CreateMatchingRegex ( string uriTemplate ) : string
uriTemplate string
return string

CreateMatchingRegex2() public static method

public static CreateMatchingRegex2 ( string uriTemplate ) : string
uriTemplate string
return string

GetParameterNames() public method

public GetParameterNames ( ) : IEnumerable
return IEnumerable

GetParameters() public method

public GetParameters ( Uri uri ) : object>.IDictionary
uri System.Uri
return object>.IDictionary

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