Click or drag to resize

EpcClass Methods

The EpcClass type exposes the following members.

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 EpcClass instance from the specified EPC Class scheme and components. Depending on the scheme, the resulting EpcClass instance will have an EPC Class URI that consists of one of the following:
  • (If the scheme corresponds to an EPC Scheme) urn:epc:idpat:, the specified EPC class scheme name, a colon (:) character, the specified components separated by dot (.) characters with %xx escape sequences as required to conform to URI syntax, another dot, and a wildcard asterisk (*)
  • (If the scheme is an EPC Class Scheme not based on an EPC Scheme) urn:epc:class:, the specified EPC class 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(EpcClassScheme.SGTIN, "0614141", "112345") returns an EpcClass instance whose EPC Class URI is urn:epc:idpat:sgtin:0614141.112345.*.

Example: fromComponents(EpcClassScheme.LGTIN, "0614141", "112345", "a/b") returns an EpcClass instance whose EPC Class URI is urn:epc:class:lgtin:0614141.112345.a%2Fb.

Public methodStatic memberFromEpcClassUri Creates an EpcClass instance by parsing the specified string as a pure identity EPC pattern URI or an EPC Class URI.
Public methodGetHashCode Returns the hash code of the current object
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToEpc Creates an Epc instance based on this EPC Class by adding a serial number.
Public methodToGs1ElementString Creates a new Gs1ElementString instance based on this EPC Class.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also