Defines OrdQueryListCursor
(not exposed on baja
namespace).
new (require("baja/ord/OrdQueryListCursor"))(list)
Cursor for an ORD Query List.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
list |
baja.OrdQueryList |
Methods
-
each(func)
-
Iterate through the Cursor and call a function on every item.
Parameters:
Name Type Description func
function function called on every iteration with the
baja.OrdQuery being used as an argument.- Overrides:
-
get()
-
Return the current query from the Cursor.
- Overrides:
Returns:
- Type
- baja.OrdQuery
-
getIndex()
-
Return the current index for the Cursor.
Returns:
- Type
- Number
-
getOrd()
-
Return the current ORD String at the current index.
Returns:
- Type
- String
-
hasNext()
-
Return true if there's another query in the Cursor.
Returns:
- Type
- Boolean
-
next()
-
Advance the Cursor to the next query.
- Overrides:
Returns:
true if there's another query in the Cursor.
- Type
- Boolean
-
resolveNext(target, options)
-
Resolve the next ORD Query.
Parameters:
Name Type Description target
module:baja/ord/OrdTarget options
Object