Nedap.HandheldApi
Public Member Functions | Static Public Member Functions | Properties
Nedap.EPC.TDT.EpcCode Class Reference

Class that represents an electronic product code (EPC) More...

List of all members.

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.

Detailed Description

Class that represents an electronic product code (EPC)


Constructor & Destructor Documentation

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.

Parameters:
binaryEpcEPC 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.

Parameters:
stringEpcEPC 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.

Parameters:
GTIN1414-digit GTIN
serialSerial number for GTIN
companyPrefixLengthLength of GS1 Company Prefix

Member Function Documentation

bool Nedap.EPC.TDT.EpcCode.ByteArraysEqual ( byte[]  b1,
byte[]  b2 
)

Method that checks whether the two bytes are equal.

Parameters:
b1First byte
b2Second byte
Returns:
True if equal, false if not equal
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.

Parameters:
binaryEpc
Returns:
static EpcCode Nedap.EPC.TDT.EpcCode.CodeWithGTIN14 ( string  GTIN14,
ulong  serial,
uint  companyPrefixLength 
) [static]

Returns the 14-digit GTIN as an array of bytes.

Parameters:
GTIN1414-digit GTIN
serialSerial number for GTIN
companyPrefixLengthLength of GS1 Company Prefix
Returns:
14-digit GTIN
static EpcCode Nedap.EPC.TDT.EpcCode.CodeWithString ( string  stringEpc) [static]

Returns EPC as an array of bytes where input parameter is in string format.

Parameters:
stringEpc
Returns:
string Nedap.EPC.TDT.EpcCode.Description ( )

Returns PURE_IDENTITY URI string.

Returns:
override bool Nedap.EPC.TDT.EpcCode.Equals ( object  obj)

Equals.

Parameters:
objInput object
Returns:
False if input parameter is null or input parameter type is not equal to matching EPC type or input parameter value is not equal to matching EPC, true if input parameter value is equal to matching EPC
override int Nedap.EPC.TDT.EpcCode.GetHashCode ( )

Get hash code.

Returns:
Returns hash code from base implementation.

Property Documentation

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.