aspose.barcode 24.5.1 → 24.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ const joint_ = require('./Joint');
4
4
  const complexbarcode_ = require("./ComplexBarcode");
5
5
  const generation_ = require("./Generation");
6
6
  const recognition_ = require("./Recognition");
7
- const jar_name_ = "/aspose-barcode-nodejs-24.5.jar";
7
+ const jar_name_ = "/aspose-barcode-nodejs-24.7.jar";
8
8
  const jar_path_ = __dirname + jar_name_;
9
9
  const fs = require("fs");
10
10
 
@@ -128,17 +128,19 @@ class ComplexBarcodeGenerator extends joint.BaseJavaClass {
128
128
  class Address extends joint.BaseJavaClass {
129
129
  static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwAddress";
130
130
 
131
- constructor(arg) {
132
- super(Address.initAddress(arg));
131
+ constructor()
132
+ {
133
+ let javaClass = java.import(Address.javaClassName)
134
+ super(new javaClass());
133
135
  this.init();
134
136
  }
135
137
 
136
- static initAddress(arg) {
137
- if (arg == null) {
138
- let javaAddress = java.import(Address.javaClassName);
139
- return new javaAddress();
140
- }
141
- return arg;
138
+ static construct(javaClass)
139
+ {
140
+ let address = new Address();
141
+ address.setJavaClass(javaClass);
142
+ address.init();
143
+ return address;
142
144
  }
143
145
 
144
146
  /**
@@ -633,8 +635,8 @@ class SwissQRBill extends joint.BaseJavaClass {
633
635
  debtor;
634
636
 
635
637
  init() {
636
- this.creditor = new Address(this.getJavaClass().getCreditorSync());
637
- this.debtor = new Address(this.getJavaClass().getDebtorSync());
638
+ this.creditor = Address.construct(this.getJavaClass().getCreditorSync());
639
+ this.debtor = Address.construct(this.getJavaClass().getDebtorSync());
638
640
  }
639
641
 
640
642
  constructor(javaClass) {