Package org.spdx.licenseTemplate
Class TextTemplateOutputHandler
java.lang.Object
org.spdx.licenseTemplate.TextTemplateOutputHandler
- All Implemented Interfaces:
ILicenseTemplateOutputHandler
public class TextTemplateOutputHandler extends Object implements ILicenseTemplateOutputHandler
License template output handler for generating a text version of a license from a license template.
Used when parsing a license template.
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description TextTemplateOutputHandler() -
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 foundStringgetText()voidtext(String text)Text for processingvoidvariableRule(LicenseTemplateRule rule)Variable rule found within the template
-
Constructor Details
-
TextTemplateOutputHandler
public TextTemplateOutputHandler()
-
-
Method Details
-
text
Description copied from interface:ILicenseTemplateOutputHandlerText for processing- Specified by:
textin interfaceILicenseTemplateOutputHandler
-
variableRule
Description copied from interface:ILicenseTemplateOutputHandlerVariable rule found within the template- Specified by:
variableRulein interfaceILicenseTemplateOutputHandler
-
beginOptional
Description copied from interface:ILicenseTemplateOutputHandlerBegin optional rule found- Specified by:
beginOptionalin interfaceILicenseTemplateOutputHandler
-
endOptional
Description copied from interface:ILicenseTemplateOutputHandlerEnd optional rule found- Specified by:
endOptionalin interfaceILicenseTemplateOutputHandler
-
getText
-
completeParsing
public void completeParsing()Description copied from interface:ILicenseTemplateOutputHandlerSignals all text has been added and parsing can be completed.- Specified by:
completeParsingin interfaceILicenseTemplateOutputHandler
-