org.apache.rat.anttasks
Class SubstringLicenseMatcher

java.lang.Object
  extended by org.apache.rat.analysis.license.SimplePatternBasedLicense
      extended by org.apache.rat.anttasks.SubstringLicenseMatcher
All Implemented Interfaces:
IHeaderMatcher

public class SubstringLicenseMatcher
extends SimplePatternBasedLicense

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

Since:
RAT Antlib 0.8

Nested Class Summary
static class SubstringLicenseMatcher.Pattern
          A simple wrapper around a substring.
 
Constructor Summary
SubstringLicenseMatcher()
           
 
Method Summary
 void addConfiguredPattern(SubstringLicenseMatcher.Pattern p)
           
 java.lang.String[] getPatterns()
           
 
Methods inherited from class org.apache.rat.analysis.license.SimplePatternBasedLicense
getLicenseFamilyCategory, getLicenseFamilyName, getNotes, match, matches, reportOnLicense, reset, setLicenseFamilyCategory, setLicenseFamilyName, setNotes, setPatterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstringLicenseMatcher

public SubstringLicenseMatcher()
Method Detail

addConfiguredPattern

public void addConfiguredPattern(SubstringLicenseMatcher.Pattern p)

getPatterns

public java.lang.String[] getPatterns()
Overrides:
getPatterns in class SimplePatternBasedLicense


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.