org.jtheque.primary.utils.web.analyzers.generic.field
Interface FieldGetter


public interface FieldGetter

Author:
Baptiste Wicht

Method Summary
 String getFieldName()
          Return the name of the field for which the getter is made.
 String getValue(String line)
          Return the value for the line.
 boolean mustGet(String line)
          Indicate if the getter must analyze the line or not.
 String performOperations(String line, ScannerPossessor analyzer)
          Perform the operations on the line.
 

Method Detail

mustGet

boolean mustGet(String line)
Indicate if the getter must analyze the line or not.

Parameters:
line - The line to analyze.
Returns:
true if the getter must analyze the line, else false.

getValue

String getValue(String line)
Return the value for the line.

Parameters:
line - The line.
Returns:
The value of the field.

getFieldName

String getFieldName()
Return the name of the field for which the getter is made.

Returns:
The name of the field.

performOperations

String performOperations(String line,
                         ScannerPossessor analyzer)
Perform the operations on the line. The operations are performed before the getter analyze the line.

Parameters:
line - The line.
analyzer - The analyzer.
Returns:
The line eventually modified by the different operations.


Copyright © 2010 JTheque. All Rights Reserved.