Class RePollHandler.Extract

  • Enclosing class:
    RePollHandler

    public static class RePollHandler.Extract
    extends java.lang.Object
    A "bag" to store regular expression extraction instructions
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean extract()  
      int extract​(java.util.Properties props, java.lang.String data)
      Do the extraction
      boolean fail()  
      boolean replace()
      true if the previous replace worked
      java.lang.String replace​(java.lang.String data)
      Do the substitution
      boolean reset()  
      boolean result()  
      boolean succeed()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • replace

        public java.lang.String replace​(java.lang.String data)
        Do the substitution
      • extract

        public int extract​(java.util.Properties props,
                           java.lang.String data)
        Do the extraction
        Parameters:
        props - where to put the extracted properties
        data - the data to extract from
        Returns:
        The number of extractions performed.
      • replace

        public boolean replace()
        true if the previous replace worked
      • extract

        public boolean extract()
      • result

        public boolean result()
      • reset

        public boolean reset()
      • fail

        public boolean fail()
      • succeed

        public boolean succeed()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object