Package org.spdx.utility.compare
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.TheTemplateRegexMatcherclass should be used in place of this class. This class will be removed in the next major release.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 Classes Modifier and Type Class Description static classFilterTemplateOutputHandler.OptionalTextHandlingDeprecated.static classFilterTemplateOutputHandler.VarTextHandlingDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static StringREGEX_ESCAPEDeprecated.String used to escape
-
Constructor Summary
Constructors Constructor Description FilterTemplateOutputHandler(boolean includeVarText)Deprecated.FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling)Deprecated.FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling, FilterTemplateOutputHandler.OptionalTextHandling optionalTextHandling)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbeginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)Deprecated.voidcompleteParsing()Deprecated.voidendOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)Deprecated.List<String>getFilteredText()Deprecated.FilterTemplateOutputHandler.VarTextHandlinggetVarTextHandling()Deprecated.booleanisIncludeVarText()Deprecated.voidtext(String text)Deprecated.voidvariableRule(org.spdx.licenseTemplate.LicenseTemplateRule rule)Deprecated.
-
-
-
Field Detail
-
REGEX_ESCAPE
public static final String REGEX_ESCAPE
Deprecated.String used to escape- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FilterTemplateOutputHandler
@Deprecated public FilterTemplateOutputHandler(boolean includeVarText)
Deprecated.- Parameters:
includeVarText- if true, include the default variable text
-
FilterTemplateOutputHandler
public FilterTemplateOutputHandler(FilterTemplateOutputHandler.VarTextHandling varTextHandling)
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 Detail
-
text
public void text(String 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
public FilterTemplateOutputHandler.VarTextHandling getVarTextHandling()
Deprecated.- Returns:
- the varTextHandling
-
-