Class HeaderSource.MultiLiteralHeaderSource
- java.lang.Object
-
- com.mycila.maven.plugin.license.header.HeaderSource
-
- com.mycila.maven.plugin.license.header.HeaderSource.MultiLiteralHeaderSource
-
- Enclosing class:
- HeaderSource
public static class HeaderSource.MultiLiteralHeaderSource extends HeaderSource
AHeaderSourcebuilt from multiple license header template literals.
-
-
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 MultiLiteralHeaderSource(String preamble, String[] contents, String[] separators)
-
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
-
-
-
-
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
-
-