|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproper.core.ProperObject
public abstract class ProperObject
This abstract class serves only for some common functionality of most classes. It handles stuff like interpreting the verbose string and propagating changes to its registered listeners.
| Field Summary |
|---|
| Fields inherited from interface proper.core.ProperInterface |
|---|
VERSION |
| Constructor Summary | |
|---|---|
ProperObject()
initializes the Object |
|
| 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 the given classname |
java.lang.String |
getVerboseString()
returns the verbose string |
java.lang.String |
getVerboseStringForClass(java.lang.String classname)
returns the verbose string (can be "") for the given classname |
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 |
java.lang.String |
toString()
returns only the classname |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProperObject()
| Method Detail |
|---|
public void addListener(ProperInterface o)
addListener in interface ProperInterfacepublic void removeListener(ProperInterface o)
removeListener in interface ProperInterfacepublic java.util.Vector getListeners()
getListeners in interface ProperInterfacepublic void notifyListener(ProperInterface o)
notifyListener in interface ProperInterfacepublic void notifyListeners()
notifyListeners in interface ProperInterfacepublic void setVerbose(boolean verbose)
setVerbose in interface ProperInterfacepublic boolean getVerbose()
getVerbose in interface ProperInterfacepublic void setVerboseLevel(int verboseLevel)
setVerboseLevel in interface ProperInterfacepublic int getVerboseLevel()
getVerboseLevel in interface ProperInterfacepublic void setOutput(java.io.PrintStream out)
setOutput in interface ProperInterfacepublic void addOutput(java.io.PrintStream out)
addOutput in interface ProperInterfacepublic java.lang.String getVerboseStringForClass(java.lang.String classname)
getVerboseStringForClass in interface ProperInterfaceclassname - the list of classes to verbosepublic int getVerboseLevelForClass(java.lang.String classname)
getVerboseLevelForClass in interface ProperInterfaceclassname - the list of classes to verbosepublic boolean classInVerbose(java.lang.String classname)
classInVerbose in interface ProperInterfacepublic void setVerboseString(java.lang.String verboseStr)
setVerboseString in interface ProperInterfacepublic java.lang.String getVerboseString()
getVerboseString in interface ProperInterfacepublic java.lang.Runtime getRuntime()
getRuntime in interface ProperInterfacepublic void printMemory()
printMemory in interface ProperInterfacepublic void print(int x)
print in interface ProperInterfacepublic void print(boolean x)
print in interface ProperInterfacepublic void print(java.lang.String x)
print in interface ProperInterfacepublic void print(java.lang.Object x)
print in interface ProperInterfacepublic void println()
println in interface ProperInterfacepublic void println(int x)
println in interface ProperInterfacepublic void println(boolean x)
println in interface ProperInterfacepublic void println(java.lang.String x)
println in interface ProperInterfacepublic void println(java.lang.Object x)
println in interface ProperInterfacepublic void debugprint(int x)
debugprint in interface ProperInterfacepublic void debugprint(boolean x)
debugprint in interface ProperInterfacepublic void debugprint(java.lang.String x)
debugprint in interface ProperInterfacepublic void debugprint(java.lang.Object x)
debugprint in interface ProperInterfacepublic void debugprintln()
debugprintln in interface ProperInterfacepublic void debugprintln(int x)
debugprintln in interface ProperInterfacepublic void debugprintln(boolean x)
debugprintln in interface ProperInterfacepublic void debugprintln(java.lang.String x)
debugprintln in interface ProperInterfacepublic void debugprintln(java.lang.Object x)
debugprintln in interface ProperInterfacepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||