Click or drag to resize

Epc Class

An electronic product code (EPC). Instances of this class represent just the pure EPC identifier, without data carrier-specific control information such as filter bits.
Inheritance Hierarchy
SystemObject
  GS1.EPC.ApiEpc

Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public class Epc

The Epc type exposes the following members.

Properties
 NameDescription
Public propertyComponents Returns the components that comprise this Epc. Each component is one of the dot-delimited strings following the urn:epc:id: prefix of the URI, with any %xx escape sequences replaced by the corresponding character.

If e is an Epc instance, then Epc.fromComponents(e.getEpcScheme(), e.getComponents()) returns an Epc instance that is equal to e.

Example: the getComponents method for EPC URI urn:epc:id:sgtin:0614141.112345.a%2Fb returns an array containing the strings "0614141", "112345", and "a/b".

Public propertyEpcScheme Returns the EPC scheme of this EPC.
Public propertyEpcUri Returns the pure identity EPC URI corresponding to this EPC.
Top
Methods
 NameDescription
Public methodEquals Returns true if the specified object is an Epc instance that denotes the same EPC (i.e., has the identical EPC URI).
(Overrides ObjectEquals(Object))
Public methodStatic memberFromComponents Creates an Epc instance from the specified EPC scheme and components. The resulting Epc instance will have an pure identity EPC URI consisting of urn:epc:id:, the specified EPC scheme name, a colon (:) character, and the specified components separated by dot (.) characters with %xx escape sequences as required to conform to URI syntax.

Example: fromComponents(EpcScheme.SGTIN, "0614141", "112345", "a/b") returns an Epc instance whose pure identity EPC URI is urn:epc:id:sgtin:0614141.112345.a%2Fb.

Public methodStatic memberFromEpcUri Creates an Epc instance by parsing the specified string as a pure identity EPC URI.
Public methodGetHashCode Return the hash code for the current object
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToGs1ElementString Creates a new Gs1ElementString instance based on this EPC.
Public methodToRfidBank01(EpcTagScheme, Int32) Creates a new RfidBank01 instance based on this EPC, given the specified RFID control information, defaulting the UMI, attribute bits, and XPC bits to zero.
Public methodToRfidBank01(Boolean, UInt16, Byte, EpcTagScheme, Int32) Creates a new RfidBank01 instance based on this EPC, given the specified RFID control information.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also