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.
The TemplateRegexMatcher 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
  • Field Details

  • Constructor Details

    • 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" text
      optionalTextHandling - include optional text, exclude, or include a regex for the optional text
  • Method Details

    • text

      public void text(String text)
      Deprecated.
      Specified by:
      text in interface org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
    • variableRule

      public void variableRule(org.spdx.licenseTemplate.LicenseTemplateRule rule)
      Deprecated.
      Specified by:
      variableRule in interface org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
    • beginOptional

      public void beginOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
      Deprecated.
      Specified by:
      beginOptional in interface org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
    • endOptional

      public void endOptional(org.spdx.licenseTemplate.LicenseTemplateRule rule)
      Deprecated.
      Specified by:
      endOptional in interface org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
    • completeParsing

      public void completeParsing()
      Deprecated.
      Specified by:
      completeParsing in interface org.spdx.licenseTemplate.ILicenseTemplateOutputHandler
    • isIncludeVarText

      public boolean isIncludeVarText()
      Deprecated.
      Returns:
      the includeVarText
    • getVarTextHandling

      public FilterTemplateOutputHandler.VarTextHandling getVarTextHandling()
      Deprecated.
      Returns:
      the varTextHandling
    • getFilteredText

      public List<String> getFilteredText()
      Deprecated.
      Returns:
      the filteredText