AIDC Toolkit / GS1 / NumericIdentifierValidator
Interface: NumericIdentifierValidator
Defined in: src/numeric-identifier-validator.ts:53
Numeric identifier validator. Validates a numeric identifier.
Extends
Extended by
Properties
validate()
validate: (
identifier,validation?) =>void
Defined in: src/identifier-validator.ts:93
Validate an identifier and throw an error if validation fails.
Parameters
identifier
string
Identifier.
validation?
Identifier validation parameters.
Returns
void
Inherited from
Accessors
leaderType
Get Signature
get leaderType():
string
Defined in: src/numeric-identifier-validator.ts:57
Get the leader type.
Returns
string
identifierType
Get Signature
get identifierType():
IdentifierType
Defined in: src/identifier-validator.ts:60
Get the identifier type. Per the GS1 General Specifications, the identifier type determines the remaining properties.
Returns
Inherited from
IdentifierValidator.identifierType
prefixType
Get Signature
get prefixType():
PrefixType
Defined in: src/identifier-validator.ts:66
Get the prefix type supported by the identifier type. For all identifier types except the GTIN, this is PrefixTypes.GS1CompanyPrefix. For the GTIN, the prefix type determines the length.
Returns
Inherited from
IdentifierValidator.prefixType
length
Get Signature
get length():
number
Defined in: src/identifier-validator.ts:72
Get the length. For numeric identifier types, the length is fixed; for alphanumeric identifier types, the length is the maximum.
Returns
number
Inherited from
referenceCharacterSet
Get Signature
get referenceCharacterSet():
ContentCharacterSet
Defined in: src/identifier-validator.ts:77
Get the reference character set.
Returns
Inherited from
IdentifierValidator.referenceCharacterSet
referenceCreator
Get Signature
get referenceCreator():
CharacterSetCreator
Defined in: src/identifier-validator.ts:82
Get the reference creator.