|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.paramhandler.ParamParser
public class ParamParser
The ParamParser analyzes a String and calls a ParamLibrary for each Key/Function it finds. This System is easily extendible. For an example look into the CapturePlugin code
Constructor Summary | |
---|---|
ParamParser()
Create a ParamParser with the default ParamLibrary |
|
ParamParser(ParamLibrary lib)
Create a ParamParser with a specific Library |
Method Summary | |
---|---|
java.lang.String |
analyse(java.lang.String command,
Program prg)
Analyze a String and return the parsed String. |
java.lang.String |
getErrorString()
The Error-String for Details about an Error |
ParamLibrary |
getParamLibrary()
The used ParamLibrary |
boolean |
hasErrors()
Returns True if an error occurred |
void |
setParamLibrary(ParamLibrary lib)
Set the ParamLibrary that this Parser uses |
boolean |
showErrors()
show the parser error(s), if there were errors during parsing |
boolean |
showErrors(java.awt.Window parent)
show the parser error(s), if there were errors during parsing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamParser()
public ParamParser(ParamLibrary lib)
lib
- ParamLibrary to useMethod Detail |
---|
public boolean hasErrors()
public java.lang.String getErrorString()
public ParamLibrary getParamLibrary()
public void setParamLibrary(ParamLibrary lib)
lib
- ParamLibrary to usepublic java.lang.String analyse(java.lang.String command, Program prg)
command
- String to parseprg
- Program to use while parsing
public boolean showErrors(java.awt.Window parent)
parent
- parent window
true
, if an error exists in the parser, false
otherwisepublic boolean showErrors()
true
, if an error exists in the parser, false
otherwise
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |