org.apache.creadur.whisker.model
public class LicenseAndOrganisationCollator extends Visitor
Constructor and Description |
---|
LicenseAndOrganisationCollator() |
Modifier and Type | Method and Description |
---|---|
Set<License> |
getLicenses()
Gets the licenses collected.
|
Set<Organisation> |
getOrganisation()
Gets the organisations collected.
|
boolean |
isOnlyLicense(License license)
Was this the only license collected?
|
boolean |
isOnlyOrganisation(String primaryOrganisationId)
Is there only one organisation collected with the given id?
|
String |
toString()
Something useful for logging.
|
boolean |
traverseResource()
Don't traverse resources.
|
void |
visit(ByOrganisation byOrganisation)
Visits
ByOrganisation . |
void |
visit(WithLicense license)
Visits
WithLicense . |
traverseByOrganisation, traversePublicDomain, traverseWithLicense, visit, visit
public Set<Organisation> getOrganisation()
public boolean traverseResource()
traverseResource
in class Visitor
Visitor.traverseResource()
public void visit(WithLicense license)
WithLicense
.visit
in class Visitor
license
- not nullVisitor.visit(WithLicense)
public boolean isOnlyLicense(License license)
license
- not nullpublic void visit(ByOrganisation byOrganisation)
ByOrganisation
.visit
in class Visitor
byOrganisation
- not nullVisitor.visit(ByOrganisation)
public String toString()
toString
in class Object
Object.toString()
public boolean isOnlyOrganisation(String primaryOrganisationId)
primaryOrganisationId
- not nullCopyright © 2011-2013 Apache Software Foundation. All Rights Reserved.