EntityScheme
OfficeIMO.Entities
Defines how to validate and present one family of entity values.
Inheritance
- object
- EntityScheme
Usage
Explore 29 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 25
- Method EntityCatalog.GetScheme
- Property EntityCatalog.Schemes
- Property EntityMatch.Scheme
- Property EntityValidationResult.Scheme
- Method EuVatSchemes.Get
- Property EuVatSchemes.All
- Property FinancialSchemes.Bic
- Property FinancialSchemes.Card
- Property FinancialSchemes.Iban
- Property FinancialSchemes.Isin
- Property FinancialSchemes.Lei
- Property IEntityRecognizer.Schemes
- Property InternetSchemes.Email
- Property InternetSchemes.Url
- Property PolandSchemes.IdentityCard
- Property PolandSchemes.Krs
- Property PolandSchemes.Nip
- Property PolandSchemes.Passport
- Property PolandSchemes.Pesel
- Property PolandSchemes.Regon
- Property UnitedKingdomSchemes.Company
- Property UnitedKingdomSchemes.Nino
- Property UnitedKingdomSchemes.Vat
- Property UnitedStatesSchemes.Ein
- Property UnitedStatesSchemes.Ssn
Accepted by parameters 4
- Method EntityCatalog.TryGetScheme
- Method EntityCatalogBuilder.Add
- Method EntityRecognitionContext.IsEnabled
- Constructor EntityValidationResult.EntityValidationResult
Methods
public virtual EntityDetails? Decode(string normalized) #Returns the attributes encoded in a valid value, when supported.
Parameters
- normalized string
Returns
EntityDetails?public virtual string Format(string normalized, EntityFormatStyle style = Display) #Formats a canonical value for the requested use.
Parameters
- normalized string
- style OfficeIMO.Entities.EntityFormatStyle = Display
Returns
stringpublic bool IsValid(string? value) #Checks whether a value passes local validation.
Parameters
- value string?
Returns
boolpublic virtual string MaskPartial(string normalized) #Masks a canonical value, preserving only the scheme's permitted display fragments.
Parameters
- normalized string
Returns
stringpublic string? Normalize(string? value) #Returns the canonical value or null if validation fails.
Parameters
- value string?
Returns
string?public bool TryNormalize(string? value, out string normalized) #Returns the canonical value on successful validation.
Parameters
- value string?
- normalized string
Returns
boolpublic abstract EntityValidationResult Validate(string? value) #Checks written or normalized input without throwing for a malformed value.
Parameters
- value string?
Returns
EntityValidationResultInherited Methods
Properties
public abstract string Id { get; } #Stable catalog identifier.
public abstract EntityKind Kind { get; } #Category used for filtering and masking.
public abstract string DisplayName { get; } #Human-readable scheme name.
public virtual string? Country { get; } #ISO 3166-1 alpha-2 country, or null for an international scheme.
public virtual string? Issuer { get; } #Organization responsible for issuing or standardizing these values.
public virtual Uri? Specification { get; } #Documentation for the implemented format or check.
public virtual int MinLength { get; } #Minimum normalized length in UTF-16 code units.
public virtual int MaxLength { get; } #Maximum normalized length in UTF-16 code units.
public virtual IReadOnlyList<EntityCheckInfo> Checks { get; } #Checks available for the supported formats and variants.
public virtual EntitySensitivity Sensitivity { get; } #Default masking classification.
public virtual IReadOnlyList<string> Contains { get; } #Scheme identifiers that can appear inside this scheme's match.