"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasePolicy = void 0;
const render_1 = require("./render");
class BasePolicy {
type;
name;
category;
minimumVersion;
description;
moduleName;
constructor(type, name, category, minimumVersion, description, moduleName) {
this.type = type;
this.name = name;
this.category = category;
this.minimumVersion = minimumVersion;
this.description = description;
this.moduleName = moduleName;
}
renderADMLString(nlsString, translations) {
return (0, render_1.renderADMLString)(this.name, this.moduleName, nlsString, translations);
}
renderADMX(regKey) {
return [
``,
` `,
` `,
` `,
...this.renderADMXElements(),
` `,
``
];
}
renderADMLStrings(translations) {
return [
`${this.name}`,
this.renderADMLString(this.description, translations)
];
}
renderADMLPresentation() {
return `${this.renderADMLPresentationContents()}`;
}
renderProfile() {
return [`${this.name}`, this.renderProfileValue()];
}
renderProfileManifest(translations) {
return `
${this.renderProfileManifestValue(translations)}
`;
}
}
exports.BasePolicy = BasePolicy;
//# sourceMappingURL=basePolicy.js.map