Class RegExpFileMapper

  • All Implemented Interfaces:
    FileMapper

    @Named("regexp")
    public class RegExpFileMapper
    extends AbstractFileMapper
    Implementation of a file mapper, which uses regular expressions.
    • Constructor Detail

      • RegExpFileMapper

        public RegExpFileMapper()
    • Method Detail

      • setPattern

        public void setPattern​(String pPattern)
        Sets the regular expression pattern.
      • getPattern

        public String getPattern()
        Returns the regular expression pattern.
      • setReplacement

        public void setReplacement​(String pReplacement)
        Sets the replacement string.
      • getReplacement

        public String getReplacement()
        Returns the replacement string.
      • getReplaceAll

        public boolean getReplaceAll()
        Returns, whether to replace the first occurrence of the pattern (default), or all.
      • setReplaceAll

        public void setReplaceAll​(boolean pReplaceAll)
        Sets, whether to replace the first occurrence of the pattern (default), or all.