Package com.mycila.maven.plugin.license
Class HeaderSection
- java.lang.Object
-
- com.mycila.maven.plugin.license.HeaderSection
-
public class HeaderSection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description StringdefaultValueThe default value that will be used.StringensureMatchThe pattern to use to match this section in the header.StringkeyThe name of this section to match.
-
Constructor Summary
Constructors Constructor Description HeaderSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()StringgetEnsureMatch()StringgetKey()booleanisMultiLineMatch()voidsetDefaultValue(String defaultValue)voidsetEnsureMatch(String ensureMatch)voidsetKey(String key)voidsetMultiLineMatch(boolean multiLineMatch)
-
-
-
Field Detail
-
key
@Parameter(required=true) public String key
The name of this section to match. Example:COPYRIGHT_SECTION
-
defaultValue
@Parameter(required=true) public String defaultValue
The default value that will be used. Example:Copyright (C) 2011 http://code.google.com/p/maven-license-plugin/
-
ensureMatch
@Parameter(required=true) public String ensureMatch
The pattern to use to match this section in the header. Example:Copyright \(C\) \d{4} .*
-
-
Method Detail
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getDefaultValue
public String getDefaultValue()
-
setDefaultValue
public void setDefaultValue(String defaultValue)
-
getEnsureMatch
public String getEnsureMatch()
-
setEnsureMatch
public void setEnsureMatch(String ensureMatch)
-
isMultiLineMatch
public boolean isMultiLineMatch()
-
setMultiLineMatch
public void setMultiLineMatch(boolean multiLineMatch)
-
-