UNPKG

@jaisocx/jpath

Version:

JPath accepts queries of datatype (string|number)[] and performs lookup in js objects and arrays

38 lines 936 B
export class JPathData { _jpath; _jpathExpression; _isPlaceholderValue; constructor() { this._jpath = []; this._jpathExpression = ""; this._isPlaceholderValue = 0; } isPlaceholderValue() { return this._isPlaceholderValue; } setIsPlaceholderValue(isPlaceholder) { this._isPlaceholderValue = isPlaceholder; return this; } getJPath() { return this._jpath; } setJPath(jpath) { this._jpath = jpath; if (!this._jpath || this._jpath.length === 0) { this._isPlaceholderValue = 1; } else { this._isPlaceholderValue = 0; } return this; } getJPathExpression() { return this._jpathExpression; } setJPathExpression(jpathExpression) { this._jpathExpression = jpathExpression; return this; } } //# sourceMappingURL=JPathData.js.map