Class NoCopyrightNoticeVerifier

java.lang.Object
org.apache.creadur.whisker.model.Visitor
org.apache.creadur.whisker.model.NoCopyrightNoticeVerifier

public class NoCopyrightNoticeVerifier extends Visitor
Verifies that no copyright notices are present.
  • Constructor Details

    • NoCopyrightNoticeVerifier

      public NoCopyrightNoticeVerifier()
  • Method Details

    • visit

      public void visit(WithLicense license)
      Visits a license to determine whether a copyright notice has been set.
      Overrides:
      visit in class Visitor
      Parameters:
      license - not null
    • isCopyrightNoticePresent

      public boolean isCopyrightNoticePresent()
      Has any WithLicense been visited with a copyright notice set?
      Returns:
      true when this verifier has visited a WithLicense with a copyright notice set, false otherwise