Class AlertPostProcessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern ALERT_PATTERN  
      private java.util.Set<java.lang.String> allowedTypes  
    • Constructor Summary

      Constructors 
      Constructor Description
      AlertPostProcessor​(java.util.Set<java.lang.String> allowedTypes)  
    • Field Detail

      • ALERT_PATTERN

        private static final java.util.regex.Pattern ALERT_PATTERN
      • allowedTypes

        private final java.util.Set<java.lang.String> allowedTypes
    • Constructor Detail

      • AlertPostProcessor

        public AlertPostProcessor​(java.util.Set<java.lang.String> allowedTypes)
    • Method Detail

      • process

        public Node process​(Node document)
        Specified by:
        process in interface PostProcessor
        Parameters:
        document - the node to post-process
        Returns:
        the result of post-processing, may be a modified node argument
      • tryConvertToAlert

        private void tryConvertToAlert​(BlockQuote blockQuote)