Validate an identification key and throw an error if validation fails.
Identification key.
Optional
validation: IdentificationKeyValidationIdentification key validation parameters.
Get the prefix manager to which this identification key creator is bound.
Get the prefix, equivalent to calling prefixManager.prefix
for a GTIN or
prefixManager.gs1CompanyPrefix
for all other identification key
types.
Get the reference length.
Get the identification key type. Per the GS1 General Specifications, the identification key type determines the remaining properties.
Get the prefix type supported by the identification key type. For all identification key types except the GTIN,
this is PrefixType.GS1CompanyPrefix
. For the GTIN, the prefix type determines the length.
Get the length. For numeric identification key types, the length is fixed; for alphanumeric identification key types, the length is the maximum.
Get the reference character set.
Get the reference validator.
Identification key creator. Creates an identification key based on its definition in section 3 of the GS1 General Specifications.
Keys are created based on a prefix defined in a prefix manager to which the identification key creator is bound.