org.apache.rat.annotation
Class ApacheV2LicenceAppender

java.lang.Object
  extended by org.apache.rat.annotation.AbstractLicenceAppender
      extended by org.apache.rat.annotation.ApacheV2LicenceAppender

public class ApacheV2LicenceAppender
extends AbstractLicenceAppender

Add an Apache Software Licence V2 licence header to a document. This appender does not check for the existence of an existing licence header, it is assumed that either a second licence header is intentional or that there is no licence header present already.


Constructor Summary
ApacheV2LicenceAppender()
          Create a licence appender with the standard ASF licence header.
ApacheV2LicenceAppender(java.lang.String copyright)
          Create a licence appender with the given copyright line.
 
Method Summary
 java.lang.String getLicenceHeader(java.io.File document)
          Get the licence header for a document.
 
Methods inherited from class org.apache.rat.annotation.AbstractLicenceAppender
append, getFirstLine, getLastLine, getLine, getType, setForce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheV2LicenceAppender

public ApacheV2LicenceAppender()
Create a licence appender with the standard ASF licence header.


ApacheV2LicenceAppender

public ApacheV2LicenceAppender(java.lang.String copyright)
Create a licence appender with the given copyright line. This should be of the form "Copyright 2008 Foo"

Parameters:
copyright -
Method Detail

getLicenceHeader

public java.lang.String getLicenceHeader(java.io.File document)
Description copied from class: AbstractLicenceAppender
Get the licence header for a document.

Specified by:
getLicenceHeader in class AbstractLicenceAppender


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