|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProperInterface
This interface implements some behavior for verbose string handling and
redirecting output.
All methods with the prefix debug
have the same functionality
as the ones without, only used to distinguish distinguish output during
development that should not be included in a release.
Field Summary | |
---|---|
static java.lang.String |
VERSION
the version number of Proper |
Method Summary | |
---|---|
void |
addListener(ProperInterface o)
adds the object to the listener list |
void |
addOutput(java.io.PrintStream out)
adds the printstream to use for outputting data, i.e. |
boolean |
classInVerbose(java.lang.String classname)
checks whether the given class name is part of the verbose string |
void |
debugprint(boolean x)
prints the given boolean to the current ouput stream (debug) |
void |
debugprint(int x)
prints the given int to the current output stream (debug) |
void |
debugprint(java.lang.Object x)
prints the given object to the current ouput stream (debug) |
void |
debugprint(java.lang.String x)
prints the given string to the current ouput stream (debug) |
void |
debugprintln()
prints a new line to the current ouput stream (debug) |
void |
debugprintln(boolean x)
prints the given boolean to the current ouput stream (debug) |
void |
debugprintln(int x)
prints the given int to the current ouput stream (debug) |
void |
debugprintln(java.lang.Object x)
prints the given object to the current ouput stream (debug) |
void |
debugprintln(java.lang.String x)
prints the given string to the current ouput stream (debug) |
java.util.Vector |
getListeners()
returns the current list of listeners |
java.lang.Runtime |
getRuntime()
returns the runtime instance for this application |
boolean |
getVerbose()
the current verbose state |
int |
getVerboseLevel()
the current verbose level |
int |
getVerboseLevelForClass(java.lang.String classname)
returns the verbose level for this class from the given classname-list |
java.lang.String |
getVerboseString()
returns the verbose string |
java.lang.String |
getVerboseStringForClass(java.lang.String classname)
returns the verbose string (can be "") for this class from the given classname-list |
void |
notifyListener(ProperInterface o)
notifies the specified listener of changes |
void |
notifyListeners()
notifies all the listeners of changes |
void |
print(boolean x)
prints the given boolean to the current ouput stream |
void |
print(int x)
prints the given int to the current output stream |
void |
print(java.lang.Object x)
prints the given object to the current ouput stream |
void |
print(java.lang.String x)
prints the given string to the current ouput stream |
void |
println()
prints a new line to the current ouput stream |
void |
println(boolean x)
prints the given boolean to the current ouput stream |
void |
println(int x)
prints the given int to the current ouput stream |
void |
println(java.lang.Object x)
prints the given object to the current ouput stream |
void |
println(java.lang.String x)
prints the given string to the current ouput stream |
void |
printMemory()
prints out the currently free and total memory in the JVM |
void |
removeListener(ProperInterface o)
removes the object from the listeners |
void |
setOutput(java.io.PrintStream out)
sets the printstream to use for outputting data, i.e. |
void |
setVerbose(boolean verbose)
sets the verbose state (lots of information of more silent) |
void |
setVerboseLevel(int verboseLevel)
sets the verbose level (0 = nothing, >0 = more) |
void |
setVerboseString(java.lang.String verboseStr)
sets the string with the class names (comma separated and w/o path) that should set their verbose flag to TRUE a number at the end of the classname, separated by a colon, e.g. |
Field Detail |
---|
static final java.lang.String VERSION
Method Detail |
---|
void addListener(ProperInterface o)
void removeListener(ProperInterface o)
java.util.Vector getListeners()
void notifyListener(ProperInterface o)
void notifyListeners()
void setVerbose(boolean verbose)
boolean getVerbose()
void setVerboseLevel(int verboseLevel)
int getVerboseLevel()
void setOutput(java.io.PrintStream out)
void addOutput(java.io.PrintStream out)
java.lang.String getVerboseStringForClass(java.lang.String classname)
classname
- the list of classes to verboseint getVerboseLevelForClass(java.lang.String classname)
classname
- the list of classes to verboseboolean classInVerbose(java.lang.String classname)
void setVerboseString(java.lang.String verboseStr)
java.lang.String getVerboseString()
java.lang.Runtime getRuntime()
void printMemory()
void print(int x)
void print(boolean x)
void print(java.lang.String x)
void print(java.lang.Object x)
void println()
void println(int x)
void println(boolean x)
void println(java.lang.String x)
void println(java.lang.Object x)
void debugprint(int x)
void debugprint(boolean x)
void debugprint(java.lang.String x)
void debugprint(java.lang.Object x)
void debugprintln()
void debugprintln(int x)
void debugprintln(boolean x)
void debugprintln(java.lang.String x)
void debugprintln(java.lang.Object x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |