public class TextTemplateOutputHandler extends Object implements ILicenseTemplateOutputHandler
| Constructor and Description |
|---|
TextTemplateOutputHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginOptional(LicenseTemplateRule rule)
Begin optional rule found
|
void |
endOptional(LicenseTemplateRule rule)
End optional rule found
|
String |
getText() |
void |
normalText(String text)
Normal text found with the template (non-optional and not within a variable rule)
|
void |
optionalText(String text)
Text found within an optional text block
|
void |
variableRule(LicenseTemplateRule rule)
Variable rule found within the template
|
public void optionalText(String text)
ILicenseTemplateOutputHandleroptionalText in interface ILicenseTemplateOutputHandlerpublic void normalText(String text)
ILicenseTemplateOutputHandlernormalText in interface ILicenseTemplateOutputHandlerpublic void variableRule(LicenseTemplateRule rule)
ILicenseTemplateOutputHandlervariableRule in interface ILicenseTemplateOutputHandlerpublic void beginOptional(LicenseTemplateRule rule)
ILicenseTemplateOutputHandlerbeginOptional in interface ILicenseTemplateOutputHandlerpublic void endOptional(LicenseTemplateRule rule)
ILicenseTemplateOutputHandlerendOptional in interface ILicenseTemplateOutputHandlerpublic String getText()
Copyright © 2017 Linux Foundation. All Rights Reserved.