Uses of Class
org.apache.creadur.whisker.model.License
Package
Description
Models the domain, linking expected distribution contents to
licensing meta-data.
-
Uses of License in org.apache.creadur.whisker.fromxml
Modifier and TypeMethodDescriptionJDomBuilder.license
(org.jdom2.Element element) Builds a license model from xml.Finds the license with an id matching that referenced by the element.JDomBuilder.primaryLicense
(org.jdom2.Document document, Map<String, License> licenses) Finds the primary license for the given document from the given licenses.Modifier and TypeMethodDescriptionJDomBuilder.mapLicenses
(org.jdom2.Document document) Collects license definitions within document.Modifier and TypeMethodDescriptionJDomBuilder.collectContents
(org.jdom2.Document document, Map<String, License> licenses, Map<String, Organisation> organisations) Collects contents of the document.Finds the license with an id matching that referenced by the element.JDomBuilder.primaryLicense
(org.jdom2.Document document, Map<String, License> licenses) Finds the primary license for the given document from the given licenses.JDomBuilder.withinDirectory
(org.jdom2.Element element, Map<String, License> licenses, Map<String, Organisation> organisations) Builds a within directory model from XML.JDomBuilder.withLicense
(org.jdom2.Element element, Map<String, License> licenses, Map<String, Organisation> organisations) JDomBuilder.withLicenses
(Map<String, License> licenses, Map<String, Organisation> organisations, org.jdom2.Element parent) Collects child with-licenses. -
Uses of License in org.apache.creadur.whisker.model
Modifier and TypeMethodDescriptionWithLicense.getLicense()
Gets license meta-data shared by the resources contained.Descriptor.getPrimaryLicense()
Gets the principle license under which the work is licensed.Gets the license with the given id.Stores the license by its id.Modifier and TypeMethodDescriptionLicenseAndOrganisationCollator.getLicenses()
Gets the licenses collected.Modifier and TypeMethodDescriptionint
boolean
LicenseAndOrganisationCollator.isOnlyLicense
(License license) Was this the only license collected?boolean
Is the given license the principle license for the main work?Modifier and TypeMethodDescriptionStores the license by its id.ModifierConstructorDescriptionDescriptor
(License primaryLicense, String primaryCopyrightNotice, String primaryOrganisationId, String primaryNotice, Map<String, License> licenses, Map<String, String> notices, Map<String, Organisation> organisations, Collection<WithinDirectory> contents) Constructs a description of the expected licensing qualities of a distribution, with a primary additional copyright notice.Descriptor
(License primaryLicense, String primaryOrganisationId, String primaryNotice, Map<String, License> licenses, Map<String, String> notices, Map<String, Organisation> organisations, Collection<WithinDirectory> contents) Constructs a description of the expected licensing qualities of a distribution, with no additional primary copyright notice.WithLicense
(License license, String copyrightNotice, Map<String, String> parameters, Collection<ByOrganisation> organisations) Groups resources sharing a license and copyright claim.ModifierConstructorDescriptionDescriptor
(License primaryLicense, String primaryCopyrightNotice, String primaryOrganisationId, String primaryNotice, Map<String, License> licenses, Map<String, String> notices, Map<String, Organisation> organisations, Collection<WithinDirectory> contents) Constructs a description of the expected licensing qualities of a distribution, with a primary additional copyright notice.Descriptor
(License primaryLicense, String primaryOrganisationId, String primaryNotice, Map<String, License> licenses, Map<String, String> notices, Map<String, Organisation> organisations, Collection<WithinDirectory> contents) Constructs a description of the expected licensing qualities of a distribution, with no additional primary copyright notice.