Class 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
    • 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
    • Method Detail

      • 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
      • getFilteredText

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