Java object mapping namespace. Note: this namespace is not part of the public API of clj-spdx and may change without notice.
Java object mapping namespace. Note: this namespace is not part of the public API of clj-spdx and may change without notice.
(difference-description->map dd)
Turns a org.spdx.utility.compare.CompareTemplateOutputHandler$DifferenceDescription
object into a map. All map keys are optional, but may include:
:differences-found?
- boolean
:message
- String
:differences
- sequence of maps (see line-column->map
for
details)Note: neither :message
nor :differences
will be present when
:differences-found?
is false
(unlike the underlying Java library).
Turns a `org.spdx.utility.compare.CompareTemplateOutputHandler$DifferenceDescription` object into a map. All map keys are optional, but may include: * `:differences-found?` - `boolean` * `:message` - `String` * `:differences` - sequence of maps (see [[line-column->map]] for details) Note: neither `:message` nor `:differences` will be present when `:differences-found?` is `false` (unlike the underlying Java library).
(exception->map exc
{:keys [include-large-text-values?]
:or {include-large-text-values? false}})
Turns a org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicenseException
object into a
map. All map keys are optional, but may include:
:id
- String
(an SPDX identifier):name
- String
:comment
- String
:see-also
- sequence of String
s:deprecated?
- boolean
:deprecated-version
- String
:text
- String
:text-html
- String
:text-template
- String
See https://spdx.github.io/Spdx-Java-Library/org/spdx/library/model/license/ListedLicenseException.html for more information.
opts
are:
:include-large-text-values?
(default false
) - controls whether the
following large text values are included in the result: :comment :text :text-html :text-template
Turns a `org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicenseException` object into a map. All map keys are optional, but may include: * `:id` - `String` (an SPDX identifier) * `:name` - `String` * `:comment` - `String` * `:see-also` - sequence of `String`s * `:deprecated?` - `boolean` * `:deprecated-version` - `String` * `:text` - `String` * `:text-html` - `String` * `:text-template` - `String` See https://spdx.github.io/Spdx-Java-Library/org/spdx/library/model/license/ListedLicenseException.html for more information. `opts` are: * `:include-large-text-values?` (default `false`) - controls whether the following large text values are included in the result: `:comment :text :text-html :text-template`
(id->exception id)
Turns a valid exception id into a org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicenseException object, or returns nil. Note: unlike the underlying Java library it only handles listed SPDX exception ids.
Turns a valid exception id into a org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicenseException object, or returns nil. Note: unlike the underlying Java library it only handles listed SPDX exception ids.
(id->license id)
Turns a valid license id into a org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicense
object, or returns nil.
Note: unlike the underlying Java library, this function only handles listed SPDX license ids.
Turns a valid license id into a `org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicense` object, or returns nil. Note: unlike the underlying Java library, this function only handles listed SPDX license ids.
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
(license->map lic
{:keys [include-large-text-values?]
:or {include-large-text-values? false}})
Turns a org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicense
object into a map. All map keys are optional, but may include:
:id
- String
(an SPDX identifier):name
- String
:comment
- String
:see-also
- sequence of String
s:cross-refs
- sequence of maps (see cross-ref->map for details) ####TODO: REMOVE ME!!!!:deprecated?
- boolean
:deprecated-version
- String
:fsf-libre?
- boolean
:osi-approved?
- boolean
:text
- String
:text-html
- String
:text-template
- String
:header
- String
:header-html
- String
:header-template
- String
See https://spdx.github.io/Spdx-Java-Library/org/spdx/library/model/license/SpdxListedLicense.html for more information.
opts
are:
:include-large-text-values?
(default false
) - controls whether the
following large text values are included in the result: :comment :text :text-html :text-template :header :header-html :header-template
Turns a `org.spdx.library.model.v3_0_1.expandedlicensing.ListedLicense` object into a map. All map keys are optional, but may include: * `:id` - `String` (an SPDX identifier) * `:name` - `String` * `:comment` - `String` * `:see-also` - sequence of `String`s * `:cross-refs` - sequence of maps (see cross-ref->map for details) ####TODO: REMOVE ME!!!! * `:deprecated?` - `boolean` * `:deprecated-version` - `String` * `:fsf-libre?` - `boolean` * `:osi-approved?` - `boolean` * `:text` - `String` * `:text-html` - `String` * `:text-template` - `String` * `:header` - `String` * `:header-html` - `String` * `:header-template` - `String` See https://spdx.github.io/Spdx-Java-Library/org/spdx/library/model/license/SpdxListedLicense.html for more information. `opts` are: * `:include-large-text-values?` (default `false`) - controls whether the following large text values are included in the result: `:comment :text :text-html :text-template :header :header-html :header-template`
(line-column->map lc)
Turns a org.spdx.licenseTemplate.LineColumn
object into a map. All map keys
are optional, but may include:
:line
- integer
:column
- integer
:length
- integer
Turns a `org.spdx.licenseTemplate.LineColumn` object into a map. All map keys are optional, but may include: * `:line` - `integer` * `:column` - `integer` * `:length` - `integer`
(listed-exception-id? id)
Is the given id one of the listed SPDX exception identifiers?
Is the given id one of the listed SPDX exception identifiers?
(listed-license-id? id)
Is the given id one of the listed SPDX license identifiers?
Is the given id one of the listed SPDX license identifiers?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close