Click or drag to resize

Gs1ElementStringToEpc Method

Overload List
 NameDescription
Public methodToEpc(GcpLengthTable) Returns an Epc instance corresponding to the AIs in this GS1 element string that can be interpreted as an EPC. This element string must contain exactly one set of AIs that can be interpreted as an EPC, namely one of the following combinations:
  • GTIN (AI 01) + SERIAL (AI 21)
  • SSCC (AI 00)
  • GLN (AI 414)
  • GLN (AI 414) + GLN Extension (AI 254)
  • GRAI (AI 8003) that includes the optional serial number
  • GIAI (AI 8004)
  • GDTI (AI 253) that includes the optional serial number
  • GSRN-Recipient (AI 8018)
  • GSRN-Provider (AI 8017)
  • CPID (AI 8010) + CPID SERIAL (AI 8011)
  • GCN (AI 255) that includeds the optional serial number
  • GINC (AI 401)
  • GSIN(AI 402)
  • ITIP(AI 8006) + SERIAL(AI 21)
This element string may contain other AIs, but not more than one of the combinations listed above.
Public methodToEpc(Int32) Returns an Epc instance corresponding to the AIs in this GS1 element string that can be interpreted as an EPC. This element string must contain exactly one set of AIs that can be interpreted as an EPC, namely one of the following combinations:
  • GTIN (AI 01) + SERIAL (AI 21)
  • SSCC (AI 00)
  • GLN (AI 414)
  • GLN (AI 414) + GLN Extension (AI 254)
  • GRAI (AI 8003) that includes the optional serial number
  • GIAI (AI 8004)
  • GDTI (AI 253) that includes the optional serial number
  • GSRN-Recipient (AI 8018)
  • GSRN-Provider (AI 8017)
  • CPID (AI 8010) + CPID SERIAL (AI 8011)
  • GCN (AI 255) that includeds the optional serial number
This element string may contain other AIs, but not more than one of the combinations listed above.
Public methodToEpc(GcpLengthTable, EpcScheme) Returns an Epc instance having the specified EPC scheme, derived from the corresponding AIs in this GS1 element string. This element string must contain the AI or AIs corresponding to the specified EPC scheme as follows:
EPC SchemeAIs
SGTINGTIN (AI 01) + SERIAL (AI 21)
SSCCSSCC (AI 00)
SGLNGLN (AI 414), with or without GLN Extension (AI 254)
GRAIGRAI (AI 8003) that includes the optional serial number
GIAIGIAI (AI 8004)
GDTIGDTI (AI 253) that includes the optional serial number
GSRNGSRN-Recipient (AI 8018)
GSRNPGSRN-Provider (AI 8017)
CPICPID (AI 8010) + CPID SERIAL (AI 8011)
SGCNGCN (AI 255) that includes the optional serial number
GINCGINC (AI 401)
GSINGSIN (AI 402)
ITIPITIP (AI 8006) + SERIAL (AI 21)
This element string may contain other AIs; they are ignored.
Public methodToEpc(GcpLengthTable, EpcScheme) Returns an Epc instance having one of the specified EPC schemes, derived from the corresponding AIs in this GS1 element string. The EPC scheme of the result will be the scheme having the least index in the specified array, such that this element string contains the AI(s) required to construct an EPC of that scheme. This element string may contain other AIs apart from the AI(s) used to construct the result; they are ignored.
Public methodToEpc(Int32, EpcScheme) Returns an Epc instance having the specified EPC scheme, derived from the corresponding AIs in this GS1 element string. This element string must contain the AI or AIs corresponding to the specified EPC scheme as follows:
EPC SchemeAIs
SGTINGTIN (AI 01) + SERIAL (AI 21)
SSCCSSCC (AI 00)
SGLNGLN (AI 414), with or without GLN Extension (AI 254)
GRAIGRAI (AI 8003) that includes the optional serial number
GIAIGIAI (AI 8004)
GDTIGDTI (AI 253) that includes the optional serial number
GSRNGSRN-Recipient (AI 8018)
GSRNPGSRN-Provider (AI 8017)
CPICPID (AI 8010) + CPID SERIAL (AI 8011)
SGCNGCN (AI 255) that includes the optional serial number
GINCGINC (AI 401)
GSINGSIN (AI 402)
ITIPITIP (AI 8006) + SERIAL (AI 21)
This element string may contain other AIs; they are ignored.
Public methodToEpc(Int32, EpcScheme) Returns an Epc instance having one of the specified EPC schemes, derived from the corresponding AIs in this GS1 element string. The EPC scheme of the result will be the scheme having the least index in the specified array, such that this element string contains the AI(s) required to construct an EPC of that scheme. This element string may contain other AIs apart from the AI(s) used to construct the result; they are ignored.
Top
See Also