Lines Matching refs:path
41 * @return {String[]} Walkable path to data value.
45 var path = null,
62 // commented out because the path isn't sent to eval, so it
65 path = locator.split('.');
66 for (i=path.length-1; i >= 0; --i) {
67 if (path[i].charAt(0) === '@') {
68 path[i] = keys[parseInt(path[i].substr(1),10)];
77 return path;
81 * Utility function to walk a path and return the value located there.
84 * @param path {String[]} Locator path.
89 getLocationValue: function (path, data) {
91 len = path.length;
93 if (isObject(data) && (path[i] in data)) {
94 data = data[path[i]];
114 _schema.resultListLocator_ as a dot separated path string just as you would
118 object properties (e.g. "response['results']"); This is called a "path
125 * `key` : <strong>(required)</strong> The path locator (String)
131 If no value parsing is needed, you can use path locators (strings)
146 path locators in _schema.metaFields_. The collected values will be
268 path = getPath(schema.resultListLocator),
269 results = path ?
270 (getValue(path, json_in) ||
310 field, key, locator, path, parser, val,
321 path = SchemaJSON.getPath(locator);
322 if (path) {
323 if (path.length === 1) {
326 path: path[0]
331 path : path,
361 path = complexPaths[j];
362 val = SchemaJSON.getLocationValue(path.path, result);
364 val = SchemaJSON.getLocationValue([path.locator], result);
370 key: path.key,
371 path: path.locator
373 // Don't try to process the path as complex
380 record[path.key] = Base.parse.call(this,
381 (SchemaJSON.getLocationValue(path.path, result)), path);
386 path = simplePaths[j];
388 record[path.key] = Base.parse.call(this,
389 ((result[path.path] === undefined) ?
390 result[j] : result[path.path]), path);
422 var key, path;
425 path = SchemaJSON.getPath(metaFields[key]);
426 if (path && json_in) {
427 data_out.meta[key] = SchemaJSON.getLocationValue(path, json_in);