UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

41 lines (40 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isIfcPropertyAccessor = exports.IfcPropertyAccessor = void 0; const ObjectAccessor_js_1 = require("./ObjectAccessor.js"); const NamedObjectAccessor_js_1 = require("./NamedObjectAccessor.js"); class IfcPropertyAccessor extends NamedObjectAccessor_js_1.NamedObjectAccessor { getNestedObjectAccessor(name) { switch (name) { case "pset": return this.getIfcPropertySetAccessor(); } return undefined; } listNestedObjects() { return ["pset"]; } listAttributes() { return ["value", ...super.listAttributes()]; } getAttribute(name) { switch (name) { case "value": return this.getValue(); } return super.getAttribute(name); } } exports.IfcPropertyAccessor = IfcPropertyAccessor; function isIfcPropertyAccessor(arg) { return (typeof arg.getGuid === "undefined" && typeof arg.getName === "function" && typeof arg.getDescription === "function" && typeof arg.getIfcClass === "undefined" && typeof arg.getIfcPropertySetAccessor === "function" && typeof arg.getIfcPropertyAccessor === "undefined" && typeof arg.getIfcTypeObjectAccessor === "undefined" && (0, ObjectAccessor_js_1.isObjectAccessor)(arg)); } exports.isIfcPropertyAccessor = isIfcPropertyAccessor; //# sourceMappingURL=IfcPropertyAccessor.js.map