Package org.spdx.licenseTemplate
Interface ILicenseTemplateOutputHandler
-
- All Known Implementing Classes:
HtmlTemplateOutputHandler,TextTemplateOutputHandler
public interface ILicenseTemplateOutputHandlerHandles output for parsed license templatesThe methods are called during parsing to handle the parsed rules and text.
- Author:
- Gary O'Neall
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
text
void text(String text)
Text for processing- Parameters:
text- text to be processed
-
variableRule
void variableRule(LicenseTemplateRule rule)
Variable rule found within the template- Parameters:
rule- license template rule
-
beginOptional
void beginOptional(LicenseTemplateRule rule)
Begin optional rule found- Parameters:
rule- optional rule
-
endOptional
void endOptional(LicenseTemplateRule rule)
End optional rule found- Parameters:
rule- end optional rule
-
completeParsing
void completeParsing() throws LicenseParserExceptionSignals all text has been added and parsing can be completed.- Throws:
LicenseParserException- if the license template could not be parsed
-
-