Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RoleTokenizer.cs
1using System;
2using System.Threading.Tasks;
6
8{
13 {
18 {
19 }
20
26 public Grade Supports(Type Type)
27 {
28 if (Type == typeof(Role))
29 return Grade.Ok;
30 else
31 return Grade.NotAtAll;
32 }
33
39 public async Task Tokenize(object Value, TokenizationProcess Process)
40 {
41 if (Value is Role Role)
42 await Tokenize(Role, null, Process);
43 }
44
51 public static async Task Tokenize(Role Role, Contract Contract, TokenizationProcess Process)
52 {
53 if (!(Role is null))
54 {
56 Process.DocumentIndexOffset++;
58 }
59 }
60 }
61}
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Contains information about a tokenization process.
uint DocumentIndexOffset
Document Index Offset. Used to identify sequences of tokens in a document.
Interface for full-text-search tokenizers
Definition: ITokenizer.cs:12
Grade
Grade enumeration
Definition: Grade.cs:7