/** * Set the path of the last order specification of this query node. * @see OrderSpec#setPath(org.apache.jackrabbit.spi.Path) * * @param path a path * @throws IllegalStateException if no order specification is set */ public void setPath(Path path) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setPath(path); }
/** * Set the path of the last order specification of this query node. * @see OrderSpec#setPath(org.apache.jackrabbit.spi.Path) * * @param path a path * @throws IllegalStateException if no order specification is set */ public void setPath(Path path) { if (specs.size() == 0) { throw new IllegalStateException("No order specification set"); } OrderSpec orderSpec = specs.get(specs.size() - 1); orderSpec.setPath(path); }