Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalIdentityTokenizer.cs
1using System;
2using System.Threading.Tasks;
6
8{
13 {
18 {
19 }
20
26 public Grade Supports(Type Type)
27 {
28 if (Type == typeof(LegalIdentity))
29 return Grade.Ok;
30 else
31 return Grade.NotAtAll;
32 }
33
39 public Task Tokenize(object Value, TokenizationProcess Process)
40 {
41 if (Value is LegalIdentity LegalIdentity)
42 Tokenize(LegalIdentity, Process);
43
44 return Task.CompletedTask;
45 }
46
53 {
54 if (!(LegalIdentity is null) &&
55 (LegalIdentity.State == IdentityState.Approved ||
57 {
58 if (!(LegalIdentity.Properties is null))
59 {
61 Process.DocumentIndexOffset++;
62 }
63 }
64 }
65 }
66}
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