Package org.spdx.licenseTemplate
Interface ILicenseTemplateOutputHandler
- All Known Implementing Classes:
CompareTemplateOutputHandler,FilterTemplateOutputHandler,HtmlTemplateOutputHandler,TextTemplateOutputHandler
public interface ILicenseTemplateOutputHandler
Handles output for parsed license templates. The methods are called during parsing
to handle the parsed rules and text.
- Author:
- Gary O'Neall
-
Method Summary
Modifier and Type Method Description voidbeginOptional(LicenseTemplateRule rule)Begin optional rule foundvoidcompleteParsing()Signals all text has been added and parsing can be completed.voidendOptional(LicenseTemplateRule rule)End optional rule foundvoidtext(String text)Text for processingvoidvariableRule(LicenseTemplateRule rule)Variable rule found within the template
-
Method Details
-
text
Text for processing- Parameters:
text-
-
variableRule
Variable rule found within the template- Parameters:
rule-
-
beginOptional
Begin optional rule found- Parameters:
rule-
-
endOptional
End optional rule found- Parameters:
rule-
-
completeParsing
Signals all text has been added and parsing can be completed.- Throws:
LicenseParserException
-