|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.win.riaca.openmath.phrasebook.Phrasebook
Defines what a minimal phrasebook should implement.
Note that this class does NOT assume anything about the protocol used between client and server. This is the responsibility of the implementing subclass. Because of this, problems with the communication should be thrown as a subclass of PhrasebookException.
Constructor Summary | |
Phrasebook()
Constructor. |
Method Summary | |
void |
addCD(java.lang.String fName,
java.lang.String fLocation,
java.lang.String fClassName)
Adds a CD to the phrasebook. |
java.lang.Object |
execute(java.lang.String fMethod,
java.util.Vector fArguments)
An execute method. |
java.lang.String |
perform(java.lang.String fMethod,
java.util.Vector fArguments)
A perform method. |
void |
removeCD(java.lang.String fName)
Removes a CD from the phrasebook. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Phrasebook()
Method Detail |
public java.lang.String perform(java.lang.String fMethod, java.util.Vector fArguments) throws PhrasebookException
fMethod
- the type of perform.fArguments
- the arguments to the perform.
PhrasebookException
- thrown when a major error occurs.public java.lang.Object execute(java.lang.String fMethod, java.util.Vector fArguments) throws PhrasebookException
Note: the previous version of the library (1.2) didn't allow you to return any object as a result of a perform. To make it possible this method is the right one to implement.
fMethod
- the type of execution.fArguments
- the arguments to the execute.
PhrasebookException
- thrown when a major error occurs.public void addCD(java.lang.String fName, java.lang.String fLocation, java.lang.String fClassName) throws PhrasebookException
fName
- the name of the CD.fLocation
- the URL of the CD, if none is given it is
assumed to be on the classpathfClassName
- the Codec of the CD.
PhrasebookException
- thrown when a major error occurs.public void removeCD(java.lang.String fName) throws PhrasebookException
fName
- the name of the CD.
PhrasebookException
- thrown when a major error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |