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.TheTemplateRegexMatcher
class 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 class
FilterTemplateOutputHandler.OptionalTextHandling
Deprecated.static class
FilterTemplateOutputHandler.VarTextHandling
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static String
REGEX_ESCAPE
Deprecated.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 void
beginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
Deprecated.void
completeParsing()
Deprecated.void
endOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
Deprecated.List<String>
getFilteredText()
Deprecated.FilterTemplateOutputHandler.VarTextHandling
getVarTextHandling()
Deprecated.boolean
isIncludeVarText()
Deprecated.void
text(String text)
Deprecated.void
variableRule(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:
text
in interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
variableRule
public void variableRule(org.spdx.licenseTemplate.LicenseTemplateRule rule)
Deprecated.- Specified by:
variableRule
in interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
beginOptional
public void beginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
Deprecated.- Specified by:
beginOptional
in interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
endOptional
public void endOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
Deprecated.- Specified by:
endOptional
in interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
completeParsing
public void completeParsing()
Deprecated.- Specified by:
completeParsing
in interfaceorg.spdx.licenseTemplate.ILicenseTemplateOutputHandler
-
isIncludeVarText
public boolean isIncludeVarText()
Deprecated.- Returns:
- the includeVarText
-
getVarTextHandling
public FilterTemplateOutputHandler.VarTextHandling getVarTextHandling()
Deprecated.- Returns:
- the varTextHandling
-
-