Constructor. Called internally by PrefixManager.gtinCreator; should not be called by other code.
Prefix manager.
GTIN type.
Get the tweak for sparse creation.
Set the tweak for sparse creation.
Static
zeroStatic
zeroStatic
convertStatic
normalizeNormalize a GTIN of any length.
GTIN.
Normalized GTIN.
Static
validateStatic
validateGTIN14Protected
Static
creatorGet the character set creator for a character set.
Character set.
Character set creator.
Create GTIN-14(s) with an indicator digit and reference(s) based on numeric value(s). The value(s) is/are
converted to reference(s) of the appropriate length using NUMERIC_CREATOR
.
Indicator digit.
Numeric value(s).
If true, the value(s) is/are mapped to a sparse sequence resistant to discovery. Default is false.
GTIN-14(s).
Protected
validateOptional
validation: IdentificationKeyValidationProtected
padPad 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.
Identification key.
Identification key validation parameters.
Padded identification key.
Protected
initInitialize the prefix manager. This method is in lieu of a constructor due to the mixin architecture.
Prefix manager.
Prefix within prefix manager to use to calculate reference length.
GTIN creator. Applicable to GTIN-13, GTIN-12, and GTIN-8 types; no applicable to GTIN-14 type.