net.firstpartners.rp.ui.command
Class RpCommandLine

java.lang.Object
  extended by net.firstpartners.rp.ui.command.RpCommandLine

public class RpCommandLine
extends java.lang.Object

Main point of entry into the system for the command line.

Author:
brownpa

Field Summary
private  KnowledgeSphereManager m_manager
          Knowledge manager responsable for handling the requests
 
Constructor Summary
RpCommandLine(KnowledgeSphereManager manager)
          Creates a new RpCommandLine object.
 
Method Summary
static void main(java.lang.String[] args)
          Called by the user from the command line to do an Add / Search / Feedback etc.
 void print(java.lang.String message, java.io.PrintStream out)
          Print the messge to the output stream
 void processAdd(java.lang.String info)
          Add the location to the system
 void processSearch(java.lang.String query)
          Search the query into system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_manager

private final KnowledgeSphereManager m_manager
Knowledge manager responsable for handling the requests

Constructor Detail

RpCommandLine

public RpCommandLine(KnowledgeSphereManager manager)
Creates a new RpCommandLine object.

Parameters:
manager - Knowledge manager responsable for the add/search operation
Method Detail

processAdd

public void processAdd(java.lang.String info)
Add the location to the system

Parameters:
info - Location to add

processSearch

public void processSearch(java.lang.String query)
Search the query into system

Parameters:
query - Query to search

main

public static void main(java.lang.String[] args)
Called by the user from the command line to do an Add / Search / Feedback etc.

Parameters:
args -

print

public void print(java.lang.String message,
                  java.io.PrintStream out)
Print the messge to the output stream

Parameters:
message - Message to print
out - PrintStream