Sets the package path and updates the package type. @param pth path @return self reference
(final String pth)
| 44 | * @return self reference |
| 45 | */ |
| 46 | public Pkg path(final String pth) { |
| 47 | path = pth; |
| 48 | type = IO.checkSuffix(path, IO.XQSUFFIXES) ? PkgType.XQUERY : |
| 49 | IO.checkSuffix(path, IO.JARSUFFIX) ? PkgType.JAVA : PkgType.EXPATH; |
| 50 | return this; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Returns the package ID, consisting of the package name/URI and, optionally, its version. |
no test coverage detected