Click or drag to resize

EpcPattern Class

An electronic product code (EPC) pattern. Instances of this class represent a set of EPCs.
Inheritance Hierarchy
SystemObject
  GS1.EPC.ApiEpcPattern

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

The EpcPattern type exposes the following members.

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

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

Example: the getComponents method for EPC Pattern URI urn:epc:idpat:sgtin:0614141.112345.* returns an array containing the strings "0614141", "112345", and "*".

Public propertyEpcPatternUri Returns the pure identity EPC Pattern URI corresponding to this EPC Pattern.
Public propertyEpcScheme Returns the EPC scheme of this EPC Pattern.
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 EpcPattern instance from the specified EPC scheme and components. The resulting EpcPattern instance will have an pure identity EPC Pattern URI consisting of urn:epc:idpat:, 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", "*") returns an EpcPattern instance whose pure identity EPC Pattern URI is urn:epc:idpat:sgtin:0614141.112345.*.

Public methodStatic memberFromEpcPatternUri Creates an EpcPattern instance by parsing the specified string as a pure identity EPC Pattern 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 methodMatches Returns true if the specified EPC is matched by this EPC Pattern URI.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also