All Classes and Interfaces

Class
Description
Validates characters in GS1 element strings against GS1-defined character sets.
Describes one data component within a GS1 Application Identifier definition.
Enriches AI 7241 (AIDC MEDIA TYPE) by resolving the 2-digit code to its human-readable AIDC media type description.
Custom semantic validator for AI 7241 — AIDC Media Type.
Parsed representation of one entry in gs1-application-identifiers.jsonld.
Loads GS1 Application Identifier definitions from the bundled JSON-LD resource and provides fast lookup by AI code.
Localized full descriptions for GS1 Application Identifiers, keyed by AI code (e.g.
Represents one entry in an AI's excludes list: either an exact AI code or a start–end range.
Represents one OR option in an AI's requires list.
Tokenises a raw GS1 element string into a list of GS1AIObjectElement objects.
Enriches AI 7008 (AQUATIC SPECIES) by resolving the FAO Alpha-3 species code to its scientific name, English common name, and taxonomic family and order from the ASFIS List of Species for Fishery Statistics Purposes.
Custom semantic validator for AI 7008 — Aquatic Species (AQUATIC SPECIES).
Utility for rendering non-printable ASCII control characters (0–32) as human-readable {SYMBOL} tokens.
Reference data for FAO ASFIS (Aquatic Sciences and Fisheries Information System) species codes, loaded from the bundled asfis-species.json resource at class-initialisation time.
Immutable holder for a single FAO ASFIS species entry.
Enriches AI 7258 (BIRTH SEQUENCE — Baby birth sequence) by splitting the posinseqslash value into its constituent parts.
Options controlling how GaiaBuilder.buildDigitalLinkUri(BuilderDigitalLinkConfig) renders a GS1 Digital Link URI.
Mutable builder for BuilderDigitalLinkConfig.
What a build produced — the outbound shape of a build, before it becomes a document.
A request to build an element string and/or a Digital Link URI from AI values — the inbound shape of a build, already validated and resolved to Gaia types.
One AI/value pair to build from.
Which representation(s) the caller wants back.
Outcome of a GaiaBuilder.tryBuild* call: either a success carrying the rendered string, or a failure carrying the message and validation errors that a throwing build would have raised via GaiaBuilderException.
Runs a BuildRequest through GaiaBuilder and produces a BuildOutcome.
Enriches AIs 7230–7239 (CERT # 0 – CERT # 9 — Certification Reference) by splitting the value into its constituent parts and resolving the certification scheme code to a human-readable name.
Custom semantic validator for Certification Reference Application Identifiers (AIs 7230–7239).
Character classification utilities.
Validates check digits and check character pairs embedded in AI data values.
Strategy for validating a single component's value against a specific GS1 format constraint.
Content-stage validator that checks each pre-sliced GS1AIComponentValue on a GS1AIObjectElement.
Pluggable semantic validator for a specific GS1 Application Identifier.
Orchestrates content-stage validators over the list of parsed elements.
Loads the per-AI custom validator mapping from src/main/resources/content/ai-content.json and provides singleton lookup by AI code.
Detects and strips the optional correlation ID prefix from a raw input string.
Holds the correlation ID extracted from the leading prefix of a GS1 input string.
The result of a CorrelationIdParser.parse(String) call.
Enriches AI 8010 (CPID — Component/Part Identifier) by extracting the component/part reference that follows the GS1 company prefix.
Custom semantic validator for AI 8010 — Component/Part Identifier (CPID).
All fields for a single ISO 4217 currency entry as found in iso_4217.json.
Describes a single data carrier variant, identified by its three-character AIM Code ID (e.g.
Parses a GS1 element string that is prefixed with an AIM Code ID.
Registry of all AIM data-carrier symbology variants and ECI entries, loaded from the bundled datacarriers.json classpath resource at class-initialisation time.
The type of data carrier a symbol is — QR Code, Data Matrix, ITF, and so on — as a compile-time constant.
Enriches a GS1 date component value with a human-readable formatted date string.
Combines the DATE_VALUE and TIME_VALUE interpretations already present on the element into a single date-time interpretation.
Date utility methods for GS1 two-digit and four-digit calendar date calculations.
Enriches a numeric amount value with a human-readable decimal representation, using the last digit of the AI code as the number of implied decimal places.
Enriches a 4-digit numeric percentage value with a human-readable decimal representation and a percentage format label, using the last digit of the AI code as the number of implied decimal places.
Enriches a 6-digit numeric measurement value with a human-readable decimal representation, using the last digit of the AI code as the number of implied decimal places.
Structural rules of the GS1 Digital Link URI syntax (release 1.7.0).
Extracts GS1 Application Identifier elements from an uncompressed GS1 Digital Link URI into a list of GS1AIObjectElement objects.
An Extended Channel Interpretation (ECI) entry, mapping an ECI escape-sequence indicator and numeric ECI number to the character set it designates.
Enriches AI 8042 (ESIM) by decomposing the 32-digit eUICC Identifier (EID) of an embedded SIM.
Custom semantic validator for AI 8042 (ESIM) — the eUICC Identifier (EID) of an embedded SIM.
Deserialisation target for a single entry in the error message catalogue (errors/error_messages_EN.json, errors/error_messages_FR.json, etc.).
Singleton registry that loads error catalogue definitions from the per-language message files under src/main/resources/localization/<CODE>/ and creates GaiaError instances by interpolating message templates with call-site parameters.
Registry that maps GS1 component format names to their ComponentFormatInterface implementations.
Reference data for Federal Supply Group (FSG) codes — the NATO Supply Group (NSG) — loaded from the bundled fsg-groups.json resource at class-initialisation time.
Fluent builder for well-formed GS1 output — the inverse of GaiaParser.
Thrown by GaiaBuilder when the supplied AIs cannot be assembled into a well-formed GS1 element string or Digital Link URI.
Top-level constants for the Gaia GS1 parsing library.
The broad structural class of a data carrier, mirroring the type field of datacarriers.json.
Controls the order in which day, month, and year are written in a formatted date string.
The separator character placed between day, month, and year in a formatted date string.
Severity level of a GaiaError.
Pipeline stage in which a GaiaError was produced.
The language used for error messages and other human-readable output produced by the parser.
Controls how the month is written in a formatted date string.
Controls how deeply the parser validates a GS1 element string.
Controls how the year is written in a formatted date string.
An immutable validation error or advisory warning produced during GS1 element string parsing.
The codecs between Gaia's Java types and their JSON documents.
How much of a parse result to include.
A caller-supplied document could not be turned into a Gaia request: a field holds a value outside its enumeration, a required field is absent, or the shape is wrong.
Thrown when a caller-supplied ModifierInterface throws while rewriting the input.
Entry point for the Gaia GS1 element string parser.
Provides the product name, build version and timestamp of the Gaia library, sourced from gaia-version.properties which is populated at build time by Maven resource filtering (project.name, project.version, maven.build.timestamp).
Custom semantic validator for AI 255 — Global Coupon Number (GCN).
Custom semantic validator for AI 253 — Global Document Type Identifier (GDTI).
Enriches a GS1 latlong geographic coordinate value (AI 4309 — SHIP TO GEO) by decoding the 20-digit encoded value into human-readable latitude, longitude and combined coordinate interpretations in both decimal degrees (DD) and degrees/minutes/seconds (DMS) formats.
Custom semantic validator for AI 8004 — Global Individual Asset Identifier (GIAI).
Custom semantic validator for AI 401 — Global Identification Number for Consignment (GINC).
Custom semantic validator for GLN-bearing Application Identifiers (AIs 410–417).
Enriches AI 8013 (GMN — Global Model Number) by decomposing the value into its model reference and check character pair.
Custom semantic validator for AI 8013 — Global Model Number (GMN).
Custom semantic validator for AI 8003 — Global Returnable Asset Identifier (GRAI).
A parsed component slice: the AiComponent definition paired with the substring of the AI element value that was assigned to it during syntax parsing.
An immutable, human-readable interpretation of a segment of a GS1 AI element.
The result of parsing GS1 content — either a plain element string or a GS1 Digital Link URI — holding all resolved GS1AIObjectElement instances and any object-level validation errors.
A fully resolved GS1 Application Identifier instance, combining the parsed value with the enriched metadata from the AI definition.
GS1 Application Identifier element string parser.
The GS1-defined character sets used to validate AI data.
Core constants for the GS1 Application Identifier standard.
Application Identifier (AI) code constants, split out of GS1Constants.
Date and date-time formatting constants, split out of DateEnricher and DateTimeEnricher.
Interpretation constants consumed by the GS1AIInterpretation enrichers — type keys, their display labels, and enricher-specific values, split out of GS1Constants.
Classpath locations of the static data resources GAIA loads at startup.
Unit-of-measure constants for measurement AIs, split out of ISOUnitEnricher.
The role an Application Identifier plays in a GS1 Digital Link URI.
The type of GS1 content carried in a barcode or other data carrier.
Controls how deeply GS1AIParser validates a GS1 element string.
Metadata extracted from a GS1 Digital Link URI.
GS1 Digital Link URI parser.
Facade for GS1 element string parsing.
Enriches a GS1 key value with its matched GS1 company prefix and the corresponding GS1 member organisation (MO) description.
Loads the GS1 company prefix range table from src/main/resources/content/gs1_company_prefix_registry.json and provides prefix validation for GS1 keys (GLN, GTIN, SSCC, etc.).
Shared helpers for working with GS1 data values.
Custom semantic validator for AI 402 — Global Shipment Identification Number (GSIN).
Custom semantic validator for GSRN-bearing Application Identifiers: AI 8017 — GSRN (provider of services) AI 8018 — GSRN (recipient of services)
Enriches GTIN-bearing AIs (01, 02) by identifying the native GTIN format and, for GTIN-14, the packaging level indicated by the first digit.
Custom semantic validator for GTIN-bearing Application Identifiers (AIs 01 and 02).
Enriches AI 7007 — HARVEST DATE (YYMMDD[YYMMDD]) with labelled start-date, optional end-date, and combined date-range interpretations.
Custom semantic validator for AI 7007 — Harvest Date (YYMMDD[YYMMDD]).
Validates hhmm — HHMM time where HH ∈ [00,23] and MM ∈ [00,59].
Enriches AI 8014 (MUDI — Highly Individualised Device Registration Identifier, HIDRI) by decomposing the value into its device reference and check character pair.
Custom semantic validator for AI 8014 — Highly Individualised Device Registration Identifier (HIDRI).
Enriches AI 8007 (IBAN — International Bank Account Number) by decomposing the value into its constituent fields and verifying the MOD 97 check digits.
Utility methods for IBAN validation.
Validates iban — International Bank Account Number.
Enriches AI 8043 (PSIM) by surfacing the parts of the physical SIM's ICCID (ITU-T E.118 integrated circuit card identifier).
Enriches AI 8040 (IMEI) and AI 8041 (IMEI2) by decomposing the 15-digit International Mobile Equipment Identity into its constituent fields.
Reference data for IMEI Reporting Body Identifiers (RBIs) — the leading 2 digits of a Type Allocation Code, naming the GSMA-appointed body that allocated it.
Custom semantic validator for AI 8040 (IMEI) and AI 8041 (IMEI2) — the International Mobile Equipment Identity of a cellular device.
Validates importeridx — the single-character Importer Index in AI 7040 (UIC+EXT).
Describes how to extract one GS1AIInterpretation from a GS1AIObjectElement.
Orchestrates the interpretation stage of the GS1 parsing pipeline.
Enriches a base value extracted from a GS1 AI element with additional GS1AIInterpretation objects derived via a registry lookup or other logic.
Loads interpretation definitions and enricher instances from /content/ai-content.json at class-initialisation time.
Integer parsing utilities.
Enriches GS1 iso3166alpha2 fields containing a 2-character ISO 3166-1 alpha-2 country code by resolving it to a human-readable name.
Validates iso3166alpha2 — ISO 3166-1 alpha-2 country code.
Reference data for ISO 3166-1 country codes, loaded from the bundled iso_3166.json resource at class-initialisation time.
Enriches a 3-digit ISO 3166-1 numeric country code with the code itself and its country name as two separate interpretations.
Enriches GS1 iso3166list fields containing one to five concatenated ISO 3166-1 numeric country codes (3 digits each) by resolving each code to its country name.
Validates iso3166list — a concatenated list of ISO 3166-1 numeric country codes.
Validates iso3166 — ISO 3166-1 numeric country code.
Reference data for ISO 4217 currency codes, loaded from the bundled iso_4217.json resource at class-initialisation time.
Enriches a 3-digit ISO 4217 numeric currency code with the numeric code itself, the alpha code and the currency name as three separate interpretations.
Validates iso4217 — ISO 4217 numeric currency code.
Reference data for ISO 5218 sex codes.
Enriches AI 7252 (BIO SEX — Biological sex) by mapping the single-digit ISO 5218 code to a human-readable label.
Validates iso5218 — ISO 5218 sex code.
Major Industry Identifier (MII) categories as defined by ISO/IEC 7812-1 — the issuer industry an identification-card number belongs to.
Enriches a measurement AI value with the corresponding ISO unit of measure code and name, using the first three digits of the AI code to identify the unit group.
Enriches the GTIN-14 component of AI 8006 (ITIP) and AI 8026 (ITIP CONTENT) with its GS1 company prefix and the corresponding GS1 member organisation.
Custom semantic validator for AI 8006 — Individual Trade Item Piece (ITIP).
Localized display labels for interpretation segments, keyed by the interpretation type (e.g.
Validates latlong — WGS-84 latitude/longitude encoded as N20 (AI 4309).
The Luhn (modulo-10) check digit algorithm, as used by the telecom identifiers carried in GS1 Application Identifiers 8040/8041 (IMEI) and 8042 (EID).
Validates mmoptss — an optional-seconds time component used in AI 8008 (PROD TIME).
Runs the ModifierInterface chain configured on a ParseConfig over the raw input.
Records what the ModifierInterface chain did to the raw input before parsing began.
Rewrites the raw input string before any Gaia parsing takes place.
Resolves ModifierInterface class names to cached singleton instances.
Removes the parentheses an upstream system prints around each Application Identifier, leaving the bare AIs the GS1 tokeniser expects.
Removes every space character from a GS1 AI element string.
Combines the CURRENCY_ALPHA and DECIMAL_AMOUNT interpretations already present on the element into a MONETARY_AMOUNT and, when full currency metadata is available, a MONETARY_AMOUNT_DISPLAY interpretation.
Reference data for NATO Stock Number (NSN) cataloguing nation codes — the National Codification Bureau (NCB) codes assigned under the NATO Codification System (NCS) — loaded from the bundled ncb-countries.json resource at class-initialisation time.
Immutable holder for a single National Codification Bureau (NCB) entry.
Validates nonzero — a numeric component whose value must not be all zeros.
Validates nozeroprefix — a numeric component that must not start with a leading zero.
Enriches AI 7001 (NSN — NATO Stock Number) by decomposing the 13-digit value into its constituent NATO-defined fields and formatting it in the standard dash-separated display notation.
Custom semantic validator for AI 7001 — NATO Stock Number (NSN).
Immutable per-call configuration for GaiaParser.parse(String, ParseConfig).
Builder for ParseConfig.
The top-level result returned by GaiaParser.
Enriches GS1 pcenc (percent-encoded) text fields by decoding any percent-encoded UTF-8 byte sequences into a plain Unicode string.
Percent-encoding (RFC 3986) decoding helpers for GS1 pcenc text fields and GS1 Digital Link URI values.
Validates pcenc — a percent-encoded string conforming to RFC 3986.
Enriches a GS1 pieceoftotal field by splitting the 4-digit PPTT value into its piece number and total count.
Validates pieceoftotal — a 4-digit value encoded as PPTT.
Validates posinseqslash — a position-in-sequence value encoded as "P/T".
Immutable record of how long a GaiaParser parse or GaiaBuilder build took, and when it ran.
Custom semantic validator for Processor Number Application Identifiers (AIs 7030–7039).
Enriches AI 7010 (PROD METHOD — Production Method) by resolving the 1–2 character code to its human-readable description.
Custom semantic validator for AI 7010 — Production Method.
Enriches AI 8008 (PROD TIME — Date and time of production) with a complete set of date, time and date-time interpretations.
Custom semantic validator for AI 8200 — Extended Packaging URL (PRODUCT URL).
Validates the data value of each parsed element against the regex pattern defined in the AI definition (JSON-LD regex field).
Shared stderr warning format for classpath resources that fail to load at class-initialisation time, either because the resource is missing or because reading/parsing it failed.
Enriches AI 8001 (DIMENSIONS — Roll products) by decomposing the 14-digit value into its five labelled measurement fields.
Enriches AI 00 (SSCC — Serial Shipping Container Code) by decomposing the 18-digit value into its constituent fields.
Custom semantic validator for AI 00 — Serial Shipping Container Code (SSCC).
A running timer returned by ProcessingTiming.start().
String utility methods.
The output of a syntax-stage parser: the tokenised AI elements and any syntax-level errors collected during Stage 1 parsing.
Performs structural validation over the full set of parsed elements.
Enriches temperature AIs expressed in Celsius (4331 — MAX TEMP C, 4333 — MIN TEMP C) with a human-readable temperature value and unit.
Enriches temperature AIs expressed in Fahrenheit (4330 — MAX TEMP F, 4332 — MIN TEMP F) with a human-readable temperature value and unit.
Enriches a GS1 HHmm time component value with a human-readable HH:mm representation and the display format.
Enriches AI 7040 (UIC+EXT — GS1 UIC with Extension 1 and Importer Index) by decomposing the 4-character value into its constituent fields.
Custom semantic validator for AI 7040 — GS1 UIC with Extension 1 and Importer Index (UIC+EXT).
Localized display values for interpretation values drawn from a fixed vocabulary (e.g.
Validates winding — the winding direction of a reel in AI 8001 (DIMENSIONS).
Enriches GS1 yesno flag fields by mapping the single-digit value to a human-readable Yes/No label.
Validates yesno — a boolean flag encoded as a single digit.
Validates yymmd0 — a YYMMDD date where DD=00 is permitted.
Validates yymmddhh — a YYMMDDHH date-and-hour value used in AI 8008 (PROD TIME).
Validates yymmdd — a strict YYMMDD calendar date where day must be 01 or later.
Validates yyyymmdd — a full-year YYYYMMDD calendar date.
Validates zero — a single-digit component whose value must be exactly "0".