Show / Hide Table of Contents

Class Tokenizer

Class used for parsing and resolving tokenized strings.

Inheritance
object
Tokenizer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class Tokenizer
Remarks

Initializes a new instance of the Tokenizer class.

Constructors

View Source

Tokenizer(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 Source

TokenResolverRegistry

Gets or sets the token resolver registry.

Declaration
public TokenResolverRegistry TokenResolverRegistry { get; set; }
Property Value
Type Description
TokenResolverRegistry

Methods

View Source

ClearCachedTokens()

Clear all cached tokens.

Declaration
public void ClearCachedTokens()
View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX