Class Tokenizer
Class used for parsing and resolving tokenized strings.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class Tokenizer
Remarks
Initializes a new instance of the Tokenizer class.
Constructors
View SourceTokenizer(bool)
Class used for parsing and resolving tokenized strings.
Declaration
public Tokenizer(bool canEdit)
Parameters
Type | Name | Description |
---|---|---|
bool | canEdit | Whether the user can edit items. |
Remarks
Initializes a new instance of the Tokenizer class.
Properties
View SourceTokenResolverRegistry
Gets or sets the token resolver registry.
Declaration
public TokenResolverRegistry TokenResolverRegistry { get; set; }
Property Value
Type | Description |
---|---|
TokenResolverRegistry |
Methods
View SourceClearCachedTokens()
Clear all cached tokens.
Declaration
public void ClearCachedTokens()
ContainsTokens(string)
Returns whether a string contains a token.
Declaration
public static bool ContainsTokens(string searchValue)
Parameters
Type | Name | Description |
---|---|---|
string | searchValue | Value to search for tokens. |
Returns
Type | Description |
---|---|
bool | Whether or not the passed string contains a token. |
ParseTokensFromString(string, bool, out List<string>)
Parses a string in search of tokens.
Declaration
public List<TokenizedItemViewModel> ParseTokensFromString(string value, bool isInDesignMode, out List<string> invalidTokens)
Parameters
Type | Name | Description |
---|---|---|
string | value | Value to parse. |
bool | isInDesignMode | The indication whether created TokenizedItems are to be used in Design mode. |
List<string> | invalidTokens | A list of tokens that were invalid. |
Returns
Type | Description |
---|---|
List<TokenizedItemViewModel> | A set of tokenized items that represent the full value. |