MCPcopy Create free account
hub / github.com/BaseXdb/basex / path

Method path

basex-core/src/main/java/org/basex/query/util/pkg/Pkg.java:46–51  ·  view source on GitHub ↗

Sets the package path and updates the package type. @param pth path @return self reference

(final String pth)

Source from the content-addressed store, hash-verified

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.

Callers 15

installXARMethod · 0.95
addRepoMethod · 0.95
collectionMethod · 0.45
attachMethod · 0.45
itemMethod · 0.45
repoFilePathMethod · 0.45
itemMethod · 0.45
valueMethod · 0.45
parseModuleMethod · 0.45
evalMethod · 0.45
testMethod · 0.45
addErrorMethod · 0.45

Calls 1

checkSuffixMethod · 0.95

Tested by

no test coverage detected