Coverage Report - org.jtheque.primary.utils.web.analyzers.generic.field.FieldGetter
 
Classes in this File Line Coverage Branch Coverage Complexity
FieldGetter
N/A
N/A
1
 
 1  
 package org.jtheque.primary.utils.web.analyzers.generic.field;
 2  
 
 3  
 import org.jtheque.primary.utils.web.analyzers.generic.operation.ScannerPossessor;
 4  
 
 5  
 /**
 6  
  * @author Baptiste Wicht
 7  
  */
 8  
 public interface FieldGetter {
 9  
         /**
 10  
          * Indicate if the getter must analyze the line or not.
 11  
          *
 12  
          * @param line The line to analyze.
 13  
          *
 14  
          * @return true if the getter must analyze the line, else false.
 15  
          */
 16  
         boolean mustGet(String line);
 17  
 
 18  
         /**
 19  
          * Return the value for the line.
 20  
          *
 21  
          * @param line The line.
 22  
          *
 23  
          * @return The value of the field.
 24  
          */
 25  
         String getValue(String line);
 26  
 
 27  
         /**
 28  
          * Return the name of the field for which the getter is made.
 29  
          *
 30  
          * @return The name of the field.
 31  
          */
 32  
         String getFieldName();
 33  
 
 34  
         /**
 35  
          * Perform the operations on the line. The operations are performed before the getter analyze
 36  
          * the line.
 37  
          *
 38  
          * @param line The line.
 39  
          * @param analyzer The analyzer.
 40  
          *
 41  
          * @return The line eventually modified by the different operations.
 42  
          */
 43  
         String performOperations(String line, ScannerPossessor analyzer);
 44  
 }