Returns the atomized item for the specified query. @param query query @param value context value @param ctx database context @return atomized item @throws QueryException query exception
(final String query, final Item value, final Context ctx)
| 138 | * @throws QueryException query exception |
| 139 | */ |
| 140 | private static String value(final String query, final Item value, final Context ctx) |
| 141 | throws QueryException { |
| 142 | |
| 143 | try(QueryProcessor qp = new QueryProcessor(query, ctx).context(value)) { |
| 144 | final Item item = qp.iter().next(); |
| 145 | return item == null ? "" : Token.string(item.string(null)); |
| 146 | } |
| 147 | } |
| 148 | } |
no test coverage detected