"use strict";
var TransformOptions = (function () {
function TransformOptions(opts) {
this.customTestTransforms = [];
this.defaultValueTransforms = [];
this.ignorePropertyTransforms = [];
this.ignoreTypeTransforms = [];
this.optInPropertyTransforms = [];
this.propertyTransforms = [];
this.testStructureTransforms = [];
this.typeTransforms = [];
this.testStructurePrefix = opts.testStructurePrefix || "";
this.testStructureSuffix = opts.testStructureSuffix || "TestStructure";
}
TransformOptions.prototype.addCustomTestTransform = function (customTestTransform) {
this.customTestTransforms.push(customTestTransform);
};
TransformOptions.prototype.addDefaultValueTransform = function (defaultValueTransform) {
this.defaultValueTransforms.push(defaultValueTransform);
};
TransformOptions.prototype.addIgnorePropertyTransform = function (ignorePropertyTransform) {
this.ignorePropertyTransforms.push(ignorePropertyTransform);
};
TransformOptions.prototype.addIgnoreTypeTransform = function (ignoreTypeTransform) {
this.ignoreTypeTransforms.push(ignoreTypeTransform);
};
TransformOptions.prototype.addOptInPropertyTransform = function (optInPropertyTransform) {
this.optInPropertyTransforms.push(optInPropertyTransform);
};
TransformOptions.prototype.addPropertyTransform = function (propertyTransform) {
this.propertyTransforms.push(propertyTransform);
};
TransformOptions.prototype.addTypeTransform = function (typeTransform) {
this.typeTransforms.push(typeTransform);
};
TransformOptions.prototype.addTestStructureTransform = function (testStructureTransform) {
this.testStructureTransforms.push(testStructureTransform);
};
TransformOptions.prototype.getCustomTestTransforms = function () {
return this.customTestTransforms;
};
TransformOptions.prototype.getDefaultValueTransforms = function () {
return this.defaultValueTransforms;
};
TransformOptions.prototype.getIgnorePropertyTransforms = function () {
return this.ignorePropertyTransforms;
};
TransformOptions.prototype.getIgnoreTypeTransforms = function () {
return this.ignoreTypeTransforms;
};
TransformOptions.prototype.getOptInPropertyTransforms = function () {
return this.optInPropertyTransforms;
};
TransformOptions.prototype.getPropertyTransforms = function () {
return this.propertyTransforms;
};
TransformOptions.prototype.getTestStructureTransforms = function () {
return this.testStructureTransforms;
};
TransformOptions.prototype.getTypeTransforms = function () {
return this.typeTransforms;
};
TransformOptions.prototype.getNameToTestStructureName = function (name) {
return "" + this.testStructurePrefix + name + this.testStructureSuffix;
};
return TransformOptions;
}());
exports.TransformOptions = TransformOptions;
//# sourceMappingURL=TransformOptions.js.map
|