Nedap.HandheldApi
|
Class that represents an electronic product code (EPC) More...
Public Member Functions | |
EpcCode (byte[] binaryEpc) | |
Constructor for the EpcCode class. Note that this version of the constructor have an array of bytes as an input parameter. | |
EpcCode (string stringEpc) | |
Constructor for the EpcCode class. First, check whether the translation of the input string in binary format succeeded. If it is succeeded, first convert it to a hexadecimal string and then, convert that hexadecimal string to an array of bytes. If it is failed, convert a input string to an array of bytes. Note that this version of the constructor have have a string as an input parameter. | |
EpcCode (string GTIN14, ulong serial, uint companyPrefixLength) | |
Constructor for the EpcCode class used for the 14-digit GTIN. | |
override bool | Equals (object obj) |
Equals. | |
bool | ByteArraysEqual (byte[] b1, byte[] b2) |
Method that checks whether the two bytes are equal. | |
override int | GetHashCode () |
Get hash code. | |
string | Description () |
Returns PURE_IDENTITY URI string. | |
Static Public Member Functions | |
static EpcCode | CodeWithBinaryData (byte[] binaryEpc) |
Returns EPC as an array of bytes where input parameter is an array of bytes. | |
static EpcCode | CodeWithString (string stringEpc) |
Returns EPC as an array of bytes where input parameter is in string format. | |
static EpcCode | CodeWithGTIN14 (string GTIN14, ulong serial, uint companyPrefixLength) |
Returns the 14-digit GTIN as an array of bytes. | |
Properties | |
byte[] | BinaryData [get, set] |
Public property that contains the EPC code as how it's stored in an RFID tag - binary data. | |
uint | LengthInBits [get] |
Public property that returns length in bits of the EPC code which is in binary format. | |
string | BinaryString [get, set] |
Public property that contains the EPC code as how it's stored in an RFID tag - in a string with ones and zeros. | |
string | HexString [get, set] |
Public property that contains the EPC code converted to hexadecimal string from a binary string. | |
string | TagEncoding [get, set] |
Public property that contains the EPC code translated from binary string to TAG_ENCODING level of representation which is in string format. | |
string | PureIdentityURI [get, set] |
Public property that contains the EPC code translated from binary string to PURE_IDENTITY level of representation which is in string format. | |
string | Legacy [get, set] |
Public property that contains the EPC code translated from binary string to LEGACY level of representation which is in string format. | |
string | OnsHostname [get, set] |
Public property that contains the EPC code translated from binary string to ONS_HOSTNAME level of representation which is in string format. | |
uint | Hash [get] |
Property that returns hash code. |
Class that represents an electronic product code (EPC)
Nedap.EPC.TDT.EpcCode.EpcCode | ( | byte[] | binaryEpc | ) |
Constructor for the EpcCode class. Note that this version of the constructor have an array of bytes as an input parameter.
binaryEpc | EPC as an array of bytes in binary representation |
Nedap.EPC.TDT.EpcCode.EpcCode | ( | string | stringEpc | ) |
Constructor for the EpcCode class. First, check whether the translation of the input string in binary format succeeded. If it is succeeded, first convert it to a hexadecimal string and then, convert that hexadecimal string to an array of bytes. If it is failed, convert a input string to an array of bytes. Note that this version of the constructor have have a string as an input parameter.
stringEpc | EPC string in binary or hexadecimal representation |
Nedap.EPC.TDT.EpcCode.EpcCode | ( | string | GTIN14, |
ulong | serial, | ||
uint | companyPrefixLength | ||
) |
Constructor for the EpcCode class used for the 14-digit GTIN.
GTIN14 | 14-digit GTIN |
serial | Serial number for GTIN |
companyPrefixLength | Length of GS1 Company Prefix |
bool Nedap.EPC.TDT.EpcCode.ByteArraysEqual | ( | byte[] | b1, |
byte[] | b2 | ||
) |
Method that checks whether the two bytes are equal.
b1 | First byte |
b2 | Second byte |
static EpcCode Nedap.EPC.TDT.EpcCode.CodeWithBinaryData | ( | byte[] | binaryEpc | ) | [static] |
Returns EPC as an array of bytes where input parameter is an array of bytes.
binaryEpc |
static EpcCode Nedap.EPC.TDT.EpcCode.CodeWithGTIN14 | ( | string | GTIN14, |
ulong | serial, | ||
uint | companyPrefixLength | ||
) | [static] |
Returns the 14-digit GTIN as an array of bytes.
GTIN14 | 14-digit GTIN |
serial | Serial number for GTIN |
companyPrefixLength | Length of GS1 Company Prefix |
static EpcCode Nedap.EPC.TDT.EpcCode.CodeWithString | ( | string | stringEpc | ) | [static] |
Returns EPC as an array of bytes where input parameter is in string format.
stringEpc |
string Nedap.EPC.TDT.EpcCode.Description | ( | ) |
Returns PURE_IDENTITY URI string.
override bool Nedap.EPC.TDT.EpcCode.Equals | ( | object | obj | ) |
Equals.
obj | Input object |
override int Nedap.EPC.TDT.EpcCode.GetHashCode | ( | ) |
Get hash code.
byte [] Nedap.EPC.TDT.EpcCode.BinaryData [get, set] |
Public property that contains the EPC code as how it's stored in an RFID tag - binary data.
string Nedap.EPC.TDT.EpcCode.BinaryString [get, set] |
Public property that contains the EPC code as how it's stored in an RFID tag - in a string with ones and zeros.
uint Nedap.EPC.TDT.EpcCode.Hash [get] |
Property that returns hash code.
string Nedap.EPC.TDT.EpcCode.HexString [get, set] |
Public property that contains the EPC code converted to hexadecimal string from a binary string.
string Nedap.EPC.TDT.EpcCode.Legacy [get, set] |
Public property that contains the EPC code translated from binary string to LEGACY level of representation which is in string format.
uint Nedap.EPC.TDT.EpcCode.LengthInBits [get] |
Public property that returns length in bits of the EPC code which is in binary format.
string Nedap.EPC.TDT.EpcCode.OnsHostname [get, set] |
Public property that contains the EPC code translated from binary string to ONS_HOSTNAME level of representation which is in string format.
string Nedap.EPC.TDT.EpcCode.PureIdentityURI [get, set] |
Public property that contains the EPC code translated from binary string to PURE_IDENTITY level of representation which is in string format.
string Nedap.EPC.TDT.EpcCode.TagEncoding [get, set] |
Public property that contains the EPC code translated from binary string to TAG_ENCODING level of representation which is in string format.