org.objectweb.telosys.service.search
Class StandardSearchMessages

java.lang.Object
  extended byorg.objectweb.telosys.service.search.StandardSearchMessages
All Implemented Interfaces:
SearchMessages

public class StandardSearchMessages
extends java.lang.Object
implements SearchMessages

The standard implementation for SearchMessages interface
In this implementation the messages are always in english.


Constructor Summary
StandardSearchMessages()
           
 
Method Summary
 ScreenMessage noRow()
          Returns the ScreenMessage for the case "no row found"
 ScreenMessage numberOfRows(int n)
          Returns the ScreenMessage saying the number of rows found
 ScreenMessage tooMuchRows(int max)
          Returns the ScreenMessage for the case "too much row"
 ScreenMessage tooMuchRows(int n, int max)
          Returns the ScreenMessage for the case "too much row"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardSearchMessages

public StandardSearchMessages()
Method Detail

noRow

public ScreenMessage noRow()
Description copied from interface: SearchMessages
Returns the ScreenMessage for the case "no row found"

Specified by:
noRow in interface SearchMessages
Returns:

tooMuchRows

public ScreenMessage tooMuchRows(int max)
Description copied from interface: SearchMessages
Returns the ScreenMessage for the case "too much row"

Specified by:
tooMuchRows in interface SearchMessages
Parameters:
max - maximum number of rows
Returns:

tooMuchRows

public ScreenMessage tooMuchRows(int n,
                                 int max)
Description copied from interface: SearchMessages
Returns the ScreenMessage for the case "too much row"

Specified by:
tooMuchRows in interface SearchMessages
Parameters:
n - number of rows found
max - maximum number of rows
Returns:

numberOfRows

public ScreenMessage numberOfRows(int n)
Description copied from interface: SearchMessages
Returns the ScreenMessage saying the number of rows found

Specified by:
numberOfRows in interface SearchMessages
Parameters:
n - number of rows found
Returns: