Package org.apache.creadur.whisker.model
Class Visitor
java.lang.Object
org.apache.creadur.whisker.model.Visitor
- Direct Known Subclasses:
LicenseAndOrganisationCollator
,NoCopyrightNoticeVerifier
,NoticeCollator
,ResourceNamesCollator
Visits element in the model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tunes traversal, allowing a moderate traversal withoutByOrganisation
elements.boolean
Tunes traversal, allowing public domain resources to be ignored.boolean
Tunes traversal, allowingResource
elements to be ignored.boolean
Tunes traversal, allowing a shallow traversal withoutWithLicense
elements.void
visit
(ByOrganisation byOrganisation) VisitsByOrganisation
.void
VisitsResource
.void
visit
(WithinDirectory directory) VisitsWithinDirectory
.void
visit
(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 withoutWithLicense
elements.- Returns:
- true when
WithLicense
elements should be stepped over, false when they should be included
-
traverseByOrganisation
public boolean traverseByOrganisation()Tunes traversal, allowing a moderate traversal withoutByOrganisation
elements.- Returns:
- true when
ByOrganisation
elements should be stepped over, false when they should be included
-
traverseResource
public boolean traverseResource()Tunes traversal, allowingResource
elements to be ignored.- Returns:
- true when
Resource
elements should be stepped over, false when they should be included
-
visit
VisitsWithinDirectory
.- Parameters:
directory
- not null
-
visit
VisitsWithLicense
.- Parameters:
license
- not null
-
visit
VisitsByOrganisation
.- Parameters:
byOrganisation
- not null
-
visit
VisitsResource
.- Parameters:
resource
- not null
-