Package org.spdx.licenseTemplate
Interface ILicenseTemplateOutputHandler
-
- All Known Implementing Classes:
HtmlTemplateOutputHandler
,TextTemplateOutputHandler
public interface ILicenseTemplateOutputHandler
Handles 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 void
beginOptional(LicenseTemplateRule rule)
Begin optional rule foundvoid
completeParsing()
Signals all text has been added and parsing can be completed.void
endOptional(LicenseTemplateRule rule)
End optional rule foundvoid
text(String text)
Text for processingvoid
variableRule(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 LicenseParserException
Signals all text has been added and parsing can be completed.- Throws:
LicenseParserException
- if the license template could not be parsed
-
-