Class FilterTemplateOutputHandler
java.lang.Object
org.spdx.utility.compare.FilterTemplateOutputHandler
- All Implemented Interfaces:
org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
@Deprecated
public class FilterTemplateOutputHandler
extends Object
implements org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
Deprecated.
Filter the template output to create a list of strings filtering out optional and/or var text
- Author:
- Gary O'Neall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.static enumDeprecated. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterTemplateOutputHandler(boolean includeVarText) Deprecated.FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling) Deprecated.FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling, FilterTemplateOutputHandler.OptionalTextHandling optionalTextHandling) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.voidDeprecated.voidendOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.Deprecated.Deprecated.booleanDeprecated.voidDeprecated.voidvariableRule(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.
-
Field Details
-
REGEX_ESCAPE
-
-
Constructor Details
-
FilterTemplateOutputHandler
Deprecated.- Parameters:
includeVarText- if true, include the default variable text
-
FilterTemplateOutputHandler
Deprecated.- Parameters:
varTextHandling- include original, exclude, or include the regex (enclosed with "~~~") for "var" text
-
FilterTemplateOutputHandler
public FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling, FilterTemplateOutputHandler.OptionalTextHandling optionalTextHandling) Deprecated.- Parameters:
varTextHandling- include original, exclude, or include the regex (enclosed with "~~~") for "var" textoptionalTextHandling- include optional text, exclude, or include a regex for the optional text
-
-
Method Details
-
text
Deprecated.- Specified by:
textin interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
variableRule
public void variableRule(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.- Specified by:
variableRulein interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
beginOptional
public void beginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.- Specified by:
beginOptionalin interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
endOptional
public void endOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule) Deprecated.- Specified by:
endOptionalin interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
completeParsing
public void completeParsing()Deprecated.- Specified by:
completeParsingin interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
isIncludeVarText
public boolean isIncludeVarText()Deprecated.- Returns:
- the includeVarText
-
getVarTextHandling
Deprecated.- Returns:
- the varTextHandling
-
getFilteredText
-
TemplateRegexMatcherclass should be used in place of this class. This class will be removed in the next major release.