public class WithLicense extends Object implements Comparable<WithLicense>, ContentElement
Constructor and Description |
---|
WithLicense(License license,
String copyrightNotice,
Map<String,String> parameters,
Collection<ByOrganisation> organisations)
Groups resources sharing a license and copyright claim.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accepts a visit.
|
int |
compareTo(WithLicense other)
Based on license.
|
String |
getCopyrightNotice()
Gets the copyright claim shared
by the resources contained.
|
License |
getLicense()
Gets license meta-data shared by the resources
contained.
|
String |
getName()
Gets the presentation name for the license
shared by the resources contained.
|
Collection<ByOrganisation> |
getOrganisations()
Gets resources grouped by responsible organisation.
|
Map<String,String> |
getParameters()
Gets the parameters substituted into the license
template when generating the license legalise.
|
String |
getText()
Gets the license legalise shared by the resources
contained.
|
String |
getURL()
Gets a locator for the license
shared by the resources contained.
|
boolean |
hasCopyrightNotice()
Indicates whether a copyright notice
accumpianies this license.
|
boolean |
isSourceRequired()
Should information about the source distribution of
contained resources be included?
|
public WithLicense(License license, String copyrightNotice, Map<String,String> parameters, Collection<ByOrganisation> organisations)
license
- License shared by contained resources,
not nullcopyrightNotice
- copyright claim
shared by contained resources, possibly nullparameters
- parameters to specialise
the license family template, not nullorganisations
- resources grouped by
responsible organisation, not nullpublic String getCopyrightNotice()
public boolean hasCopyrightNotice()
getCopyrightNotice()
is not null,
false when getCopyrightNotice()
is nullpublic String getName()
public String getURL()
public License getLicense()
public String getText() throws LicenseTemplateException
LicenseTemplateException
- when the license
text cannot be generated from the templatepublic Collection<ByOrganisation> getOrganisations()
public Map<String,String> getParameters()
public int compareTo(WithLicense other)
compareTo
in interface Comparable<WithLicense>
other
- possibly nullComparable.compareTo(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface ContentElement
visitor
- possibly nullpublic boolean isSourceRequired()
Copyright © 2011–1970 Apache Software Foundation. All rights reserved.