Class HeaderSource

    • Field Detail

      • content

        protected final String content
    • Constructor Detail

      • HeaderSource

        protected HeaderSource​(String content,
                               boolean inline)
    • Method Detail

      • getContent

        public String getContent()
        Returns:
        the text of the license template
      • isInline

        public boolean isInline()
        Returns:
        true if this HeaderSource was created from a string rather by loading the bits from an URL; false otherwise
      • isFromUrl

        public abstract boolean isFromUrl​(URL location)
        Retuns true if this HeaderSource was loaded from the URL given in the location parameter or false otherwise.
        Parameters:
        location - the URL to tell if this HeaderSource was loaded from it
        Returns:
        true if this HeaderSource was loaded from the URL given in the location parameter or false otherwise