public final class Header extends Object
Header
class wraps the license template file, the one which have to be outputted inside the other
files.Constructor and Description |
---|
Header(URL location,
Map<String,String> properties)
Constructs a
Header object pointing to a license template file. |
Modifier and Type | Method and Description |
---|---|
String |
asOneLineString() |
String |
asString() |
String |
buildForDefinition(HeaderDefinition type,
boolean unix) |
String |
eol(boolean unix) |
int |
getLineCount() |
String[] |
getLines() |
URL |
getLocation()
Returns the location of license template file.
|
String |
toString() |
public Header(URL location, Map<String,String> properties)
Header
object pointing to a license template file. In case of the template contains
replaceable values (declared as ${valuename}), you can set the map of this values.location
- The license template file location.properties
- The map of values to replace.IllegalArgumentException
- If the header file location is null or if an error occurred while reading the
file content.public String asString()
public String asOneLineString()
public int getLineCount()
public URL getLocation()
public String eol(boolean unix)
public String buildForDefinition(HeaderDefinition type, boolean unix)
public String[] getLines()
Copyright © 2008-2012 Mathieu Carbou. All Rights Reserved.