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 templateUsed when parsing a license template.
- Author:
 - Gary O'Neall
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TextTemplateOutputHandler() 
- 
Method Summary
All Methods Instance Methods Concrete 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 foundStringgetText()voidtext(String text)Text for processingvoidvariableRule(LicenseTemplateRule rule)Variable rule found within the template 
 - 
 
- 
- 
Method Detail
- 
text
public void text(String text)
Description copied from interface:ILicenseTemplateOutputHandlerText for processing- Specified by:
 textin interfaceILicenseTemplateOutputHandler- Parameters:
 text- text to be processed
 
- 
variableRule
public void variableRule(LicenseTemplateRule rule)
Description copied from interface:ILicenseTemplateOutputHandlerVariable rule found within the template- Specified by:
 variableRulein interfaceILicenseTemplateOutputHandler- Parameters:
 rule- license template rule
 
- 
beginOptional
public void beginOptional(LicenseTemplateRule rule)
Description copied from interface:ILicenseTemplateOutputHandlerBegin optional rule found- Specified by:
 beginOptionalin interfaceILicenseTemplateOutputHandler- Parameters:
 rule- optional rule
 
- 
endOptional
public void endOptional(LicenseTemplateRule rule)
Description copied from interface:ILicenseTemplateOutputHandlerEnd optional rule found- Specified by:
 endOptionalin interfaceILicenseTemplateOutputHandler- Parameters:
 rule- end optional rule
 
- 
getText
public String getText()
 
- 
completeParsing
public void completeParsing()
Description copied from interface:ILicenseTemplateOutputHandlerSignals all text has been added and parsing can be completed.- Specified by:
 completeParsingin interfaceILicenseTemplateOutputHandler
 
 - 
 
 -