Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalIdentityTokenizer.cs
1
using
System
;
2
using
System.Threading.Tasks;
3
using
Waher.Persistence.FullTextSearch
;
4
using
Waher.Persistence.FullTextSearch.Tokenizers
;
5
using
Waher.Runtime.Inventory
;
6
7
namespace
Waher.Service.IoTBroker.Legal.Identity.Tokenizers
8
{
12
public
class
LegalIdentityTokenizer
:
ITokenizer
13
{
17
public
LegalIdentityTokenizer
()
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
52
public
static
void
Tokenize
(
LegalIdentity
LegalIdentity
,
TokenizationProcess
Process)
53
{
54
if
(!(
LegalIdentity
is
null
) &&
55
(
LegalIdentity
.
State
==
IdentityState
.Approved ||
56
LegalIdentity
.
State
==
IdentityState
.Created))
57
{
58
if
(!(
LegalIdentity
.
Properties
is
null
))
59
{
60
PropertiesTokenizer
.
Tokenize
(
LegalIdentity
.
Properties
, Process);
61
Process.
DocumentIndexOffset
++;
62
}
63
}
64
}
65
}
66
}
Waher.Persistence.FullTextSearch.Tokenizers.TokenizationProcess
Contains information about a tokenization process.
Definition:
TokenizationProcess.cs:11
Waher.Persistence.FullTextSearch.Tokenizers.TokenizationProcess.DocumentIndexOffset
uint DocumentIndexOffset
Document Index Offset. Used to identify sequences of tokens in a document.
Definition:
TokenizationProcess.cs:28
Waher.Service.IoTBroker.Legal.Identity.LegalIdentity
Definition:
LegalIdentity.cs:32
Waher.Service.IoTBroker.Legal.Identity.LegalIdentity.Properties
Property[] Properties
Properties detailing the legal identity.
Definition:
LegalIdentity.cs:116
Waher.Service.IoTBroker.Legal.Identity.LegalIdentity.State
IdentityState State
Current state of identity
Definition:
LegalIdentity.cs:76
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.LegalIdentityTokenizer
Tokenizes a legal identity.
Definition:
LegalIdentityTokenizer.cs:13
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.LegalIdentityTokenizer.Supports
Grade Supports(Type Type)
How well the tokenizer can tokenize objects of type Type .
Definition:
LegalIdentityTokenizer.cs:26
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.LegalIdentityTokenizer.Tokenize
static void Tokenize(LegalIdentity LegalIdentity, TokenizationProcess Process)
Tokenizes a legal identity.
Definition:
LegalIdentityTokenizer.cs:52
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.LegalIdentityTokenizer.Tokenize
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Definition:
LegalIdentityTokenizer.cs:39
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.LegalIdentityTokenizer.LegalIdentityTokenizer
LegalIdentityTokenizer()
Tokenizes a legal identity.
Definition:
LegalIdentityTokenizer.cs:17
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.PropertiesTokenizer
Tokenizes a role.
Definition:
PropertiesTokenizer.cs:17
Waher.Service.IoTBroker.Legal.Identity.Tokenizers.PropertiesTokenizer.Tokenize
Task Tokenize(object Value, TokenizationProcess Process)
Tokenizes an object.
Definition:
PropertiesTokenizer.cs:43
Waher.Persistence.FullTextSearch.ITokenizer
Interface for full-text-search tokenizers
Definition:
ITokenizer.cs:12
System
Definition:
Adapters.g.cs:58
Waher.Persistence.FullTextSearch.Tokenizers
Definition:
CaseInsensitiveStringCollectionTokenizer.cs:8
Waher.Persistence.FullTextSearch
Definition:
CollectionInformation.cs:6
Waher.Runtime.Inventory
Definition:
TypesLoader.cs:9
Waher.Runtime.Inventory.Grade
Grade
Grade enumeration
Definition:
Grade.cs:7
Waher.Service.IoTBroker.Legal.Identity.Tokenizers
Definition:
LegalIdentityTokenizer.cs:8
Waher.Service.IoTBroker.Legal.Identity.IdentityState
IdentityState
Lists recognized legal identity states.
Definition:
Enumerations.cs:7
Waher.Service.IoTBroker
Legal
Identity
Tokenizers
LegalIdentityTokenizer.cs
Generated by
1.9.5