Class HeaderSource.LiteralHeaderSource
- java.lang.Object
-
- com.mycila.maven.plugin.license.header.HeaderSource
-
- com.mycila.maven.plugin.license.header.HeaderSource.LiteralHeaderSource
-
- Enclosing class:
- HeaderSource
public static class HeaderSource.LiteralHeaderSource extends HeaderSource
AHeaderSourcebuilt from a license header template literal.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mycila.maven.plugin.license.header.HeaderSource
HeaderSource.LiteralHeaderSource, HeaderSource.MultiLiteralHeaderSource, HeaderSource.MultiUrlHeaderSource, HeaderSource.UrlHeaderSource
-
-
Field Summary
-
Fields inherited from class com.mycila.maven.plugin.license.header.HeaderSource
content
-
-
Constructor Summary
Constructors Constructor Description LiteralHeaderSource(String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFromUrl(URL location)Retunstrueif thisHeaderSourcewas loaded from the URL given in thelocationparameter orfalseotherwise.StringtoString()-
Methods inherited from class com.mycila.maven.plugin.license.header.HeaderSource
getContent, isInline, of, of
-
-
-
-
Constructor Detail
-
LiteralHeaderSource
public LiteralHeaderSource(String content)
-
-
Method Detail
-
isFromUrl
public boolean isFromUrl(URL location)
Description copied from class:HeaderSourceRetunstrueif thisHeaderSourcewas loaded from the URL given in thelocationparameter orfalseotherwise.- Specified by:
isFromUrlin classHeaderSource- Parameters:
location- the URL to tell if thisHeaderSourcewas loaded from it- Returns:
- always
falsebecause thisHeaderSource.LiteralHeaderSourcewas not loaded from anyURL
-
-