Service Activator Toolkit
Version 1.1.0 (20081206)

org.eclipse.soda.sat.core.framework.interfaces
Interface ILineReader.IAdvisor

Enclosing interface:
ILineReader

public static interface ILineReader.IAdvisor

The IAdvisor interface defines the advice that can be given to an ILineReader as each line is read.

 IAdvisor advisor = new IAdvisor() {
   public boolean isValid(String line) {
     return line.charAt(0) != '#';
   }

   public String transform(String line) {
     String value = line.trim();
     value = value.toLower();
     return value;
   }
 };
 


Method Summary
 boolean isValid(String line)
          Query whether a read line is valid.
 String transform(String line)
          Perform a transformation on a read line.
 

Method Detail

isValid

boolean isValid(String line)
Query whether a read line is valid.

Parameters:
line - A read line.
Returns:
boolean.

transform

String transform(String line)
Perform a transformation on a read line. By default no transformation is performed.

Parameters:
line - The read line to be transformed.
Returns:
String.

Service Activator Toolkit
Version 1.1.0 (20081206)