Class PackageDetails
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe original package name, as defined by the@base
attribute in the configuration file.During processing (compilation) of a package, thebeingProcessed
field indicates the thread in which this processing is taking place; at other times, the field is null.A Source object identifying a location where the compiled SEF code of the package is to be found.The executable form of the compiled packageThe name and version number of the packageint
The priority of this version of a package relative to other versions of the same package.A short name for the package.A Source object identifying a location where the source XSLT code of the package is to be found.The values of static stylesheet parameters for this package instance. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nameAndVersion
The name and version number of the package -
baseName
The original package name, as defined by the@base
attribute in the configuration file.Required only if the package name defined in the name attribute differs from the package name in the XSLT source. If present, the value must match the package name defined in the XSLT source. Using this attribute allows packages to be renamed. This is useful when a package has static parameters whose values are bound in child withParam elements: it allows two instances of a package to be made available (under different names) with different bindings for the static parameters.
-
shortName
A short name for the package. Useful when nominating the package as the value of the -xsl option on the command line.Any convenient short name for the package name/version combination. This can be used for convenience as the value of the -xsl option on the Transform command line. (We suggest using a value that is unlikely to be confused with a filename, for example * if the same stylesheet package is used all the time.)
-
loadedPackage
The executable form of the compiled package -
sourceLocation
A Source object identifying a location where the source XSLT code of the package is to be found. Note that in general a Source is consumed by use (so it can only be read once); the sourceLocation is therefore typically useless once a loadedPackage exists. -
exportLocation
A Source object identifying a location where the compiled SEF code of the package is to be found. Note that in general a Source is consumed by use (so it can only be read once); the exportLocation is therefore typically useless once a loadedPackage exists. -
priority
public int priorityThe priority of this version of a package relative to other versions of the same package. By default (if two versions have the same priority), the higher version is used. This attribute allows (for example) version 2.0.10 to be marked as the preferred release even if a version 3.0-beta is available, by giving the two versions different priority. A numerically higher value indicates a higher priority. The value Integer.MIN_VALUE acts as a default if no explicit priority is specified. -
staticParams
The values of static stylesheet parameters for this package instance. In a function library, two instances of the same package may exist with different settings for stylesheet parameters, but they must then be given an alias package name. The nameAndVersion contains this alias; the baseName contains the original name as defined in the XSLT source code. -
beingProcessed
During processing (compilation) of a package, thebeingProcessed
field indicates the thread in which this processing is taking place; at other times, the field is null. This field is used when checking for cycles of package dependencies.
-
-
Constructor Details
-
PackageDetails
public PackageDetails()
-