Package | Description |
---|---|
com.mycila.maven.plugin.license.document | |
com.mycila.maven.plugin.license.header |
Modifier and Type | Method and Description |
---|---|
HeaderDefinition |
Document.getHeaderDefinition() |
Constructor and Description |
---|
Document(File file,
HeaderDefinition headerDefinition,
String encoding,
String[] keywords,
DocumentPropertiesLoader documentPropertiesLoader) |
Constructor and Description |
---|
DocumentFactory(File basedir,
Map<String,String> mapping,
Map<String,HeaderDefinition> definitions,
String encoding,
String[] keywords,
DocumentPropertiesLoader documentPropertiesLoader) |
Modifier and Type | Method and Description |
---|---|
HeaderDefinition |
HeaderType.getDefinition()
Returns the
HeaderDefinition which corresponds to this enumeration instance. |
HeaderDefinition |
HeaderParser.getHeaderDefinition()
Returns the header definition associated to this header parser (itself bounded to a file).
|
Modifier and Type | Method and Description |
---|---|
static Map<String,HeaderDefinition> |
HeaderType.defaultDefinitions()
Returns the header definitions of every default definitions declared by this enumeration as a map using the
header type name as key.
|
Map<String,HeaderDefinition> |
AdditionalHeaderDefinition.getDefinitions()
Returns the header definitions declared by the external header definition as a map using the header type name as
key.
|
Modifier and Type | Method and Description |
---|---|
String |
Header.applyDefinitionAndSections(HeaderDefinition headerDefinition,
boolean unix) |
String |
Header.buildForDefinition(HeaderDefinition type,
boolean unix) |
boolean |
Header.isMatchForText(Document d,
HeaderDefinition headerDefinition,
boolean unix,
String encoding) |
boolean |
Header.isMatchForText(String potentialFileHeader,
HeaderDefinition headerDefinition,
boolean unix)
Determines if a potential file header (typically, the start of the file
plus some buffer space) matches this header, as rendered with the
specified
HeaderDefinition and line-ending. |
boolean |
Header.isMatchForText(String expected,
String potentialFileHeader,
HeaderDefinition headerDefinition,
boolean unix) |
Constructor and Description |
---|
HeaderParser(FileContent fileContent,
HeaderDefinition headerDefinition,
String[] keywords)
Creates a
HeaderParser object linked to the given file content and the associated header definition
based on the file type. |
Copyright © 2008–2016 Mycila. All rights reserved.