Lines Matching refs:path

39      * @return {String[]} Walkable path to data value.
43 var path = null,
60 // commented out because the path isn't sent to eval, so it
63 path = locator.split('.');
64 for (i=path.length-1; i >= 0; --i) {
65 if (path[i].charAt(0) === '@') {
66 path[i] = keys[parseInt(path[i].substr(1),10)];
75 return path;
79 * Utility function to walk a path and return the value located there.
82 * @param path {String[]} Locator path.
87 getLocationValue: function (path, data) {
89 len = path.length;
91 if (isObject(data) && (path[i] in data)) {
92 data = data[path[i]];
112 _schema.resultListLocator_ as a dot separated path string just as you would
116 object properties (e.g. "response['results']"); This is called a "path
123 * `key` : <strong>(required)</strong> The path locator (String)
129 If no value parsing is needed, you can use path locators (strings)
144 path locators in _schema.metaFields_. The collected values will be
266 path = getPath(schema.resultListLocator),
267 results = path ?
268 (getValue(path, json_in) ||
308 field, key, locator, path, parser, val,
319 path = SchemaJSON.getPath(locator);
320 if (path) {
321 if (path.length === 1) {
324 path: path[0]
329 path : path,
359 path = complexPaths[j];
360 val = SchemaJSON.getLocationValue(path.path, result);
362 val = SchemaJSON.getLocationValue([path.locator], result);
368 key: path.key,
369 path: path.locator
371 // Don't try to process the path as complex
378 record[path.key] = Base.parse.call(this,
379 (SchemaJSON.getLocationValue(path.path, result)), path);
384 path = simplePaths[j];
386 record[path.key] = Base.parse.call(this,
387 ((result[path.path] === undefined) ?
388 result[j] : result[path.path]), path);
420 var key, path;
423 path = SchemaJSON.getPath(metaFields[key]);
424 if (path && json_in) {
425 data_out.meta[key] = SchemaJSON.getLocationValue(path, json_in);