Package org.spdx.licenseTemplate
Class TextTemplateOutputHandler
java.lang.Object
org.spdx.licenseTemplate.TextTemplateOutputHandler
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidBegin optional rule foundvoidSignals all text has been added and parsing can be completed.voidEnd optional rule foundgetText()voidText for processingvoidVariable 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
-