@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
47 lines • 1.84 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InfoFormField = void 0;
const index_1 = require("./../index");
class InfoFormField {
constructor(data) {
let dataXPathDefault = "";
this.dataXPath = typeof (data === null || data === void 0 ? void 0 : data.dataXPath) !== "undefined" ? data === null || data === void 0 ? void 0 : data.dataXPath : dataXPathDefault;
let fullyQualifiedNameDefault = "";
this.fullyQualifiedName = typeof (data === null || data === void 0 ? void 0 : data.fullyQualifiedName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fullyQualifiedName : fullyQualifiedNameDefault;
this.xfaField = index_1.InfoFormXfaField.fromJson(data === null || data === void 0 ? void 0 : data.xfaField);
}
static getDataXPathDefault() {
return "";
}
static getDataXPathDescription() {
return "XPath to the entry in the XML data structure used for importing and exporting data to the form.";
}
static getFullyQualifiedNameDefault() {
return "";
}
static getFullyQualifiedNameDescription() {
return "Fully qualified field name";
}
static getXfaFieldDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new InfoFormField(data);
}
toJson() {
var _a;
return {
'dataXPath': this.dataXPath,
'fullyQualifiedName': this.fullyQualifiedName,
'xfaField': (_a = this.xfaField) === null || _a === void 0 ? void 0 : _a.toJson(),
};
}
clone() {
return InfoFormField.fromJson(this.toJson());
}
}
exports.InfoFormField = InfoFormField;
//# sourceMappingURL=InfoFormField.js.map