Click or drag to resize

Gs1GcpLengthTable Class

A GcpLengthTable populated from data published by GS1, or from any other publisher using the same XML file format. The format of the XML file is as follows:
             <GCPPrefixFormatList date="2016-03-23T16:55:00Z">
               <entry prefix="00" gcpLength="7"/>
               <entry prefix="011" gcpLength="8"/>
               <entry prefix="018" gcpLength="10"/>
               <entry prefix="019" gcpLength="7"/>
               ...
             </GCPPrefixFormatList>
             
At the time of this writing, the GCP published file is available at the URL http://www.gs1.org/gcp-length.
Inheritance Hierarchy
SystemObject
  GS1.EPC.ApiPrefixGcpLengthTable
    GS1.EPC.ApiGs1GcpLengthTable

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

The Gs1GcpLengthTable type exposes the following members.

Constructors
 NameDescription
Public methodGs1GcpLengthTable(Stream) Creates a GCP length table by reading XML from the specified InputStream.
Public methodGs1GcpLengthTable(String) Creates a GCP length table by reading an XML file from the specified URL.
Public methodGs1GcpLengthTable(TextReader) Creates a GCP length table by reading XML from the specified Reader.
Top
Properties
 NameDescription
Public propertyDate Returns the value of the date attribute from the root element of the XML file, or null if there was no date attribute or if it could not be parsed as a timestamp.
Top
Methods
 NameDescription
Public methodAdd Adds a mapping specifying that any GCP beginning with the specified prefix is of the specific length.
(Inherited from PrefixGcpLengthTable)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGcpLength(String) Lookup a GCP length
(Inherited from PrefixGcpLengthTable)
Public methodGcpLength(String, Int32) Lookup a GCP length, starting the lookup at a particular point in the key string
(Inherited from PrefixGcpLengthTable)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also