org.apache.rat.annotation
Class ApacheV2LicenceAppender
java.lang.Object
org.apache.rat.annotation.AbstractLicenceAppender
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheV2LicenceAppender
public ApacheV2LicenceAppender()
- Create a licence appender with the standard ASF licence header.
ApacheV2LicenceAppender
public ApacheV2LicenceAppender(String copyright)
- Create a licence appender with the given copyright line. This should be of
the form "Copyright 2008 Foo"
- Parameters:
copyright
-
getLicenceHeader
public String getLicenceHeader(File document)
- Description copied from class:
AbstractLicenceAppender
- Get the licence header for a document.
- Specified by:
getLicenceHeader
in class AbstractLicenceAppender
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.