Token¶
Value object representing a discovered template token, its pattern, its original value, and optional token content.
Purpose¶
- Represent one token discovered while
clsResourceManagerscans loaded template text.
Context¶
- Namespace:
SAIF.Resources - Assembly/package:
SAIF.ResourceFiles
Public members¶
| Member | Signature | Purpose |
|---|---|---|
Name |
Public Property Name As String |
Stores the token name without delimiters. |
Content |
Public Property Content As String |
Stores the content captured after the colon in a {token:content} token. |
Pattern |
Public Property Pattern As String |
Stores the regular-expression pattern used to identify token occurrences for replacement. |
Value |
Public Property Value As String |
Stores the original matched token text. |
HasContent |
Public ReadOnly Property HasContent As Boolean |
Returns True when Content contains a value. |
New |
Public Sub New(name As String, pattern As String, value As String) |
Initializes a token without embedded content. |
New |
Public Sub New(name As String, pattern As String, value As String, content As String) |
Initializes a token and stores embedded token content. |
Behavioral notes¶
HasContentreports whether the token captured content from a{token:content}pattern.
Constraints and usage notes¶
- Instances are populated directly from token parsing and store string values only.
Sources¶
Resources\SAIF.Resources\clsResourceManager.vbResources\SAIF.Resources\SAIF.BOF.ResourceFiles.vbproj