Class GS1AIInterpretation
java.lang.Object
tools.pantheum.gaia.gs1.model.GS1AIInterpretation
An immutable, human-readable interpretation of a segment of a GS1 AI element.
Each interpretation has a machine-readable type (e.g.
"GS1_COMPANY_PREFIX"), a human-readable label
(e.g. "GS1 company prefix"), and the extracted value
(e.g. "930").
Interpretations are produced by
InterpretationEngine during the
INTERPRETATION parse mode and attached to their parent
GS1AIObjectElement.
-
Constructor Summary
ConstructorsConstructorDescriptionGS1AIInterpretation(String type, String label, String value) Creates a newGS1AIInterpretation. -
Method Summary
-
Constructor Details
-
GS1AIInterpretation
Creates a newGS1AIInterpretation.- Parameters:
type- the typelabel- the labelvalue- the value
-
-
Method Details
-
getType
Machine-readable interpretation type, e.g."GS1_COMPANY_PREFIX".- Returns:
- the type.
-
getLabel
Human-readable label, localized to the parse language (e.g."GS1 company prefix"in English,"Préfixe d'entreprise GS1"in French). SeeLabelRegistry.- Returns:
- the label.
-
getValue
-
toString
-