Class SerializableNumericIdentificationKeyCreator

Serializable numeric identification key creator.

Hierarchy

Properties

leaderType: LeaderType
identificationKeyType: IdentificationKeyType
prefixType: PrefixType
length: number
referenceCharacterSet: ContentCharacterSet
referenceCreator: CharacterSetCreator

Constructors

Accessors

  • get serialComponentLength(): number
  • Get the serial component length.

    Returns number

  • get serialComponentCharacterSet(): ContentCharacterSet
  • Get the serial component character set.

    Returns ContentCharacterSet

  • get serialComponentValidation(): CharacterSetValidation
  • Get the serial component validation parameters.

    Returns CharacterSetValidation

  • get serialComponentCreator(): CharacterSetCreator
  • Get the serial component creator.

    Returns CharacterSetCreator

  • get capacity(): number
  • Returns number

  • get tweak(): bigint
  • Get the tweak for sparse creation.

    Returns bigint

  • set tweak(value: bigint): void
  • Set the tweak for sparse creation.

    Parameters

    • value: bigint

    Returns void

  • get prefixManager(): PrefixManager
  • Returns PrefixManager

  • get prefix(): string
  • Returns string

  • get referenceLength(): number
  • Returns number

Methods

  • Parameters

    Returns void

  • Pad an identification key on the left with zero-value character for validation purposes. This is done to align an identification key with a position offset for any error message that may be thrown by the reference validator.

    Parameters

    • identificationKey: string

      Identification key.

    • validation: undefined | IdentificationKeyValidation

      Identification key validation parameters.

    Returns string

    Padded identification key.

  • Validate the prefix within an identification key.

    Parameters

    • partialIdentificationKey: string

      Partial identification key.

    • OptionalpositionOffset: number

      Position offset within a larger string.

    Returns void

  • Initialize the prefix manager. This method is in lieu of a constructor due to the mixin architecture.

    Parameters

    • prefixManager: PrefixManager

      Prefix manager.

    • prefix: string

      Prefix within prefix manager to use to calculate reference length.

    Returns void

  • Returns Iterable<string>