GS1DigitalLink
Contents
[
Hide
]GS1DigitalLink class
Represents GS1 Digital Link codetext for encoding and decoding as an ordered sequence of
Application Identifier elements. Source order and repeated Application Identifiers are preserved.
The constructed codetext is an uncompressed GS1 Digital Link URI.
Non-GS1 query parameters and URI fragments are ignored when parsing.
The GS1DigitalLink type exposes the following members:
Constructors
| Name | Description |
|---|---|
| GS1DigitalLink(uri_stem) | Initializes a new instance of the GS1DigitalLink class |
| GS1DigitalLink(uri_stem, primary_application_identifier) | Initializes a new instance of the GS1DigitalLink class |
Properties
| Name | Description |
|---|---|
| uri_stem | Gets the absolute URI prefix before the GS1 primary key path segment. The stem does not contain a query string or fragment. |
| primary_application_identifier | Gets the Application Identifier used as the Digital Link primary key. Null means that the primary key is selected automatically when the URI is constructed. |
| barcode_type | Gets or sets the barcode type used to encode this GS1 Digital Link. Supported types are QR, DataMatrix, Aztec, Pdf417, MicroPdf417, DotCode, HanXin, CodablockF and Code128. The default value is QR. |
| count | Gets the number of Application Identifier elements. |
| elements | Gets a copy of all elements in source order. |
Indexer
| Name | Description |
|---|---|
| [index] | Gets an element by its position in the ordered sequence. |
Methods
| Name | Description |
|---|---|
| create(uri_stem, codetext) | Creates a GS1 Digital Link by copying all elements from GS1 codetext and selecting the only available primary key. |
| create(uri_stem, codetext, primary_application_identifier) | Creates a GS1 Digital Link by copying all elements from GS1 codetext and selecting the only available primary key. |
| get_first(application_identifier) | Gets the first value for an Application Identifier. |
| get_all(application_identifier) | Gets all values for an Application Identifier in source order. |
| add(application_identifier, value) | Appends a validated Application Identifier element. |
| validate(value) | Validates an uncompressed GS1 Digital Link URI without constructing an object. |
| parse(value) | Parses an uncompressed GS1 Digital Link URI. |
| try_parse(value, result, validation_result) | Attempts to parse an uncompressed GS1 Digital Link URI and returns structured validation errors. |
| to_gs1_codetext() | Creates an independent GS1 codetext containing the current GS1 elements. URI-only information is not included. |
| to_uri_string() | Formats the current object state as an uncompressed GS1 Digital Link URI. |
| get_constructed_codetext() | Constructs the uncompressed GS1 Digital Link URI. |
| init_from_string(constructed_codetext) | Initializes this instance from an uncompressed GS1 Digital Link URI. Existing state is replaced only after the supplied URI has been parsed successfully. The selected barcode type is preserved. |
| get_barcode_type() | Gets the barcode type used to encode this GS1 Digital Link. |
See Also
- namespace aspose.barcode.complexbarcode
- assembly Aspose.BarCode