UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XmpNamespace = void 0; class XmpNamespace { constructor(data) { let namespaceNameDefault = ""; this.namespaceName = typeof (data === null || data === void 0 ? void 0 : data.namespaceName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.namespaceName : namespaceNameDefault; let namespacePrefixDefault = ""; this.namespacePrefix = typeof (data === null || data === void 0 ? void 0 : data.namespacePrefix) !== "undefined" ? data === null || data === void 0 ? void 0 : data.namespacePrefix : namespacePrefixDefault; let namespaceURIDefault = ""; this.namespaceURI = typeof (data === null || data === void 0 ? void 0 : data.namespaceURI) !== "undefined" ? data === null || data === void 0 ? void 0 : data.namespaceURI : namespaceURIDefault; } static getNamespaceNameDefault() { return ""; } static getNamespaceNameDescription() { return "Sets the namespace for the XMP data (e.g. \"webPDF XMP Properties\")"; } static getNamespacePrefixDefault() { return ""; } static getNamespacePrefixDescription() { return "Sets the prefix for the XMP data (e.g. \"webpdf\")"; } static getNamespaceURIDefault() { return ""; } static getNamespaceURIDescription() { return "Sets the URI for the XMP data (e.g. \"http:\/\/ns.webpdf.de\/webpdf\/6.0\/\")"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new XmpNamespace(data); } toJson() { return { 'namespaceName': this.namespaceName, 'namespacePrefix': this.namespacePrefix, 'namespaceURI': this.namespaceURI, }; } clone() { return XmpNamespace.fromJson(this.toJson()); } } exports.XmpNamespace = XmpNamespace; //# sourceMappingURL=XmpNamespace.js.map