Class PlaceholderReplacer


  • public class PlaceholderReplacer
    extends java.lang.Object
    Used to replace placeholder text in the form of open/close char such as <text> in a markdown document.

    Used by docx conversion application to replace custom fields.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> void replaceAll​(java.util.Collection<T> spanList, java.util.function.Function<java.lang.String,​java.lang.String> mapper, char openPlaceholder, char closePlaceholder, java.util.function.Function<T,​java.lang.String> getter, java.util.function.BiConsumer<T,​java.lang.String> setter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlaceholderReplacer

        public PlaceholderReplacer()
    • Method Detail

      • replaceAll

        public static <T> void replaceAll​(java.util.Collection<T> spanList,
                                          java.util.function.Function<java.lang.String,​java.lang.String> mapper,
                                          char openPlaceholder,
                                          char closePlaceholder,
                                          java.util.function.Function<T,​java.lang.String> getter,
                                          java.util.function.BiConsumer<T,​java.lang.String> setter)