Aspose::BarCode::ComplexBarcode::GS1Codetext class

GS1Codetext class

Represents GS1 codetext for encoding and decoding as an ordered sequence of Application Identifier elements. Source order and repeated Application Identifiers are preserved. The bracketed representation has the form (AI)value(AI)value. A literal opening parenthesis ‘(’ inside a value must be written as (; this is the only supported escape sequence. A closing parenthesis ‘)’ inside a value does not require escaping.

class GS1Codetext : public Aspose::BarCode::ComplexBarcode::IComplexCodetext

Methods

MethodDescription
Add(System::String, System::String)Appends a validated Application Identifier element.
get_BarcodeType() constGets the barcode type used to encode this GS1 codetext. Supported types are GS1Aztec, GS1CodablockF, GS1Code128, GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR and GS1 DataBar types. The default value is GS1Code128.
get_Count()Gets the number of Application Identifier elements.
get_Elements()Gets a copy of all elements in source order.
GetAll(System::String)Gets all values for an Application Identifier in source order.
GetBarcodeType() overrideGets the barcode type used to encode this GS1 codetext.
GetConstructedCodetext() overrideConstructs the bracketed GS1 codetext in the form (AI)value(AI)value. Literal opening parentheses in values are escaped as (.
GetFirst(System::String)Gets the first value for an Application Identifier.
GS1Codetext()Initializes an empty GS1 codetext.
idx_get(int32_t)Gets an element by its position in the ordered sequence.
InitFromString(System::String) overrideInitializes this instance from bracketed GS1 codetext in the form (AI)value(AI)value. Existing elements are replaced only after the supplied codetext has been parsed successfully.
static Parse(System::String)Parses a bracketed GS1 element string in the form (AI)value(AI)value. A literal ‘(’ inside a value must be written as (; no other escape sequence is supported, and ‘)’ does not require escaping.
set_BarcodeType(System::SharedPtr<Generation::BaseEncodeType>)Sets the barcode type used to encode this GS1 codetext. Supported types are GS1Aztec, GS1CodablockF, GS1Code128, GS1DataMatrix, GS1DotCode, GS1HanXin, GS1MicroPdf417, GS1QR and GS1 DataBar types. The default value is GS1Code128.
ToString() const overrideReturns the bracketed GS1 representation in the form (AI)value(AI)value.
static TryParse(System::String, System::SharedPtr<GS1Codetext>&, System::SharedPtr<Common::GS1ValidationResult>&)Attempts to parse a bracketed GS1 element string in the form (AI)value(AI)value and returns structured validation errors. A literal ‘(’ inside a value must be written as (; no other escape sequence is supported, and ‘)’ does not require escaping.
static Validate(System::String)Validates a bracketed GS1 element string in the form (AI)value(AI)value without constructing an object. A literal ‘(’ inside a value must be written as (; no other escape sequence is supported, and ‘)’ does not require escaping.

See Also