Package org.basex.query.util.pkg
Class Pkg
java.lang.Object
org.basex.query.util.pkg.Pkg
EXPath or internal package. Internal packages have no version.
- Author:
- BaseX Team 2005-21, BSD License, Rositsa Shadura
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabbrev()Returns the short name.id()Returns the package id, consisting of the package name/URI and, optionally, its version.Merges information of two packages.name()Returns the package name.static StringExtracts the package name from a unique package name.path()Returns the path to the package.Sets the package path and updates the package type.spec()Returns the package spec.type()Returns the package type.version()Returns the package version.static StringExtracts the package version from a unique package name.
-
Constructor Details
-
Pkg
Constructor.- Parameters:
name- name of package
-
-
Method Details
-
path
Sets the package path and updates the package type.- Parameters:
pth- path- Returns:
- self reference
-
id
Returns the package id, consisting of the package name/URI and, optionally, its version.- Returns:
- id
-
name
Returns the package name.- Returns:
- name
-
abbrev
Returns the short name.- Returns:
- short name
-
spec
Returns the package spec.- Returns:
- spec
-
path
Returns the path to the package.- Returns:
- directory
-
version
Returns the package version.- Returns:
- version ("
-" if this is no EXPath type)
-
type
Returns the package type.- Returns:
- package type
-
merge
Merges information of two packages.- Parameters:
pkg- package to merge- Returns:
- reference to package with merged information
-
name
Extracts the package name from a unique package name.- Parameters:
pkg- unique package name: name-version- Returns:
- package name
-
version
Extracts the package version from a unique package name.- Parameters:
pkg- unique package name: name-version- Returns:
- package version
-