Interface HTMLCorrectorStrategy

All Known Implementing Classes:
HTMLCorrectorReplaceStrategy

public interface HTMLCorrectorStrategy
Interface for correction strategies.
Since:
3.1u6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    name of configuration file that holds replace map to fix PLA-5820
    static final String
    represents string-name of corrector strategy (strategy=replace)
  • Method Summary

    Modifier and Type
    Method
    Description
    correct(String htmlIn, String correctionMapFile)
    Corrects 'in' string HTML fragment according to chosen strategy
  • Field Details

    • BR_REPLACE_STRATEGY_MAP

      static final String BR_REPLACE_STRATEGY_MAP
      name of configuration file that holds replace map to fix PLA-5820
      See Also:
    • REPLACE_STRATEGY

      static final String REPLACE_STRATEGY
      represents string-name of corrector strategy (strategy=replace)
      See Also:
  • Method Details

    • correct

      String correct(String htmlIn, String correctionMapFile)
      Corrects 'in' string HTML fragment according to chosen strategy
      Parameters:
      htmlIn - HTML fragment for correction
      correctionMapFile - path to properties file with correction map.
      Returns:
      String - HTML fragment after conversion