Create an identification key with a reference based on a numeric value. The value is converted to a reference of
the appropriate length using NUMERIC_CREATOR
.
Numeric value.
Optional
sparse: booleanIf true, the value is mapped to a sparse sequence resistant to discovery. Default is false.
Identification key.
Create identification keys with references based on numeric values. The values are converted to references of
the appropriate length using NUMERIC_CREATOR
.
Numeric values.
Optional
sparse: booleanIf true, the values are mapped to a sparse sequence resistant to discovery. Default is false.
Identification keys.
Create all identification keys for the prefix from 0
to capacity - 1
.
The implementation creates the strings as needed using an internal generator function, so the values are created only as needed.
Iterable iterator over created identification keys.
Validate an identification key and throw an exception if validation fails.
Identification key.
Optional
validation: IdentificationKeyValidationIdentification key validation parameters.
Get the capacity (10**referenceLength
).
Get the leader type.
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.
Get the reference creator.
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.
Numeric identification key creator. Creates one or many numeric identification keys.