Returns the next positive numeric argument. @return positive integer @throws BaseXException database exception
()
| 122 | * @throws BaseXException database exception |
| 123 | */ |
| 124 | public int number() throws BaseXException { |
| 125 | final int i = Strings.toInt(string()); |
| 126 | if(i < 0) throw usage(); |
| 127 | return i; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Returns an exception with the command usage info. |