org.apache.rat.anttasks
Class FullTextLicenseMatcher

java.lang.Object
  extended by org.apache.rat.analysis.license.BaseLicense
      extended by org.apache.rat.analysis.license.FullTextMatchingLicense
          extended by org.apache.rat.anttasks.FullTextLicenseMatcher
All Implemented Interfaces:
IHeaderMatcher

public class FullTextLicenseMatcher
extends FullTextMatchingLicense

Adapts FullTextMatchingLicense to Ant's method naming conventions so it becomes easy to write text matching based license matchers inside an Ant build file.

Since:
Rat Antlib 0.9

Constructor Summary
FullTextLicenseMatcher()
           
 
Method Summary
 void addText(String text)
           
 boolean match(Document subject, String line)
           
 void setProject(org.apache.tools.ant.Project project)
           
 
Methods inherited from class org.apache.rat.analysis.license.FullTextMatchingLicense
hasFullText, prune, reset, setFullText
 
Methods inherited from class org.apache.rat.analysis.license.BaseLicense
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, reportOnLicense, setLicenseFamilyCategory, setLicenseFamilyName, setNotes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullTextLicenseMatcher

public FullTextLicenseMatcher()
Method Detail

setProject

public void setProject(org.apache.tools.ant.Project project)

addText

public void addText(String text)

match

public boolean match(Document subject,
                     String line)
              throws RatHeaderAnalysisException
Specified by:
match in interface IHeaderMatcher
Overrides:
match in class FullTextMatchingLicense
Throws:
RatHeaderAnalysisException


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.