Package | Description |
---|---|
org.apache.creadur.whisker.fromxml | |
org.apache.creadur.whisker.model |
Models the domain, linking expected distribution contents to
licensing meta-data.
|
Modifier and Type | Method and Description |
---|---|
License |
JDomBuilder.license(org.jdom2.Element element)
Builds a license model from xml.
|
License |
JDomBuilder.license(org.jdom2.Element element,
Map<String,License> licenses)
Finds the license with an id matching that referenced by the element.
|
License |
JDomBuilder.primaryLicense(org.jdom2.Document document,
Map<String,License> licenses)
Finds the primary license for the given document from the given licenses.
|
Modifier and Type | Method and Description |
---|---|
Map<String,License> |
JDomBuilder.mapLicenses(org.jdom2.Document document)
Collects license definitions within document.
|
Modifier and Type | Method and Description |
---|---|
Collection<WithinDirectory> |
JDomBuilder.collectContents(org.jdom2.Document document,
Map<String,License> licenses,
Map<String,Organisation> organisations)
Collects contents of the document.
|
License |
JDomBuilder.license(org.jdom2.Element element,
Map<String,License> licenses)
Finds the license with an id matching that referenced by the element.
|
License |
JDomBuilder.primaryLicense(org.jdom2.Document document,
Map<String,License> licenses)
Finds the primary license for the given document from the given licenses.
|
WithinDirectory |
JDomBuilder.withinDirectory(org.jdom2.Element element,
Map<String,License> licenses,
Map<String,Organisation> organisations)
Builds a within directory model from XML.
|
WithLicense |
JDomBuilder.withLicense(org.jdom2.Element element,
Map<String,License> licenses,
Map<String,Organisation> organisations) |
Collection<WithLicense> |
JDomBuilder.withLicenses(Map<String,License> licenses,
Map<String,Organisation> organisations,
org.jdom2.Element parent)
Collects child with-licenses.
|
Modifier and Type | Method and Description |
---|---|
License |
WithLicense.getLicense()
Gets license meta-data shared by the resources
contained.
|
License |
Descriptor.getPrimaryLicense()
Gets the principle license under which the work is licensed.
|
License |
Descriptor.license(String id)
Gets the license with the given id.
|
License |
License.storeIn(Map<String,License> map)
Stores the license by its id.
|
Modifier and Type | Method and Description |
---|---|
Set<License> |
LicenseAndOrganisationCollator.getLicenses()
Gets the licenses collected.
|
Modifier and Type | Method and Description |
---|---|
int |
License.compareTo(License other) |
boolean |
LicenseAndOrganisationCollator.isOnlyLicense(License license)
Was this the only license collected?
|
boolean |
Descriptor.isPrimary(License license)
Is the given license the principle license for the main work?
|
Modifier and Type | Method and Description |
---|---|
License |
License.storeIn(Map<String,License> map)
Stores the license by its id.
|
Constructor and Description |
---|
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.
|
Descriptor(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.
|
WithLicense(License license,
String copyrightNotice,
Map<String,String> parameters,
Collection<ByOrganisation> organisations)
Groups resources sharing a license and copyright claim.
|
Constructor and Description |
---|
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.
|
Descriptor(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.
|
Copyright © 2011–1970 Apache Software Foundation. All rights reserved.