Class Visitor
java.lang.Object
org.apache.creadur.whisker.model.Visitor
- Direct Known Subclasses:
LicenseAndOrganisationCollator, NoCopyrightNoticeVerifier, NoticeCollator, ResourceNamesCollator, ResourceSourceAuditor
Visits element in the model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTunes traversal, allowing a moderate traversal withoutByOrganisationelements.booleanTunes traversal, allowing public domain resources to be ignored.booleanTunes traversal, allowingResourceelements to be ignored.booleanTunes traversal, allowing a shallow traversal withoutWithLicenseelements.voidvisit(ByOrganisation byOrganisation) VisitsByOrganisation.voidVisitsResource.voidvisit(WithinDirectory directory) VisitsWithinDirectory.voidvisit(WithLicense license) VisitsWithLicense.
-
Constructor Details
-
Visitor
public Visitor()
-
-
Method Details
-
traversePublicDomain
public boolean traversePublicDomain()Tunes traversal, allowing public domain resources to be ignored.- Returns:
- true when public domain resources should be traversed, false otherwise
-
traverseWithLicense
public boolean traverseWithLicense()Tunes traversal, allowing a shallow traversal withoutWithLicenseelements.- Returns:
- true when
WithLicenseelements should be stepped over, false when they should be included
-
traverseByOrganisation
public boolean traverseByOrganisation()Tunes traversal, allowing a moderate traversal withoutByOrganisationelements.- Returns:
- true when
ByOrganisationelements should be stepped over, false when they should be included
-
traverseResource
-
visit
VisitsWithinDirectory.- Parameters:
directory- not null
-
visit
-
visit
VisitsByOrganisation.- Parameters:
byOrganisation- not null
-
visit
-