|
||||||||||
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 ProperInterface
public void removeListener(ProperInterface o)
removeListener
in interface ProperInterface
public java.util.Vector getListeners()
getListeners
in interface ProperInterface
public void notifyListener(ProperInterface o)
notifyListener
in interface ProperInterface
public void notifyListeners()
notifyListeners
in interface ProperInterface
public void setVerbose(boolean verbose)
setVerbose
in interface ProperInterface
public boolean getVerbose()
getVerbose
in interface ProperInterface
public void setVerboseLevel(int verboseLevel)
setVerboseLevel
in interface ProperInterface
public int getVerboseLevel()
getVerboseLevel
in interface ProperInterface
public void setOutput(java.io.PrintStream out)
setOutput
in interface ProperInterface
public void addOutput(java.io.PrintStream out)
addOutput
in interface ProperInterface
public java.lang.String getVerboseStringForClass(java.lang.String classname)
getVerboseStringForClass
in interface ProperInterface
classname
- the list of classes to verbosepublic int getVerboseLevelForClass(java.lang.String classname)
getVerboseLevelForClass
in interface ProperInterface
classname
- the list of classes to verbosepublic boolean classInVerbose(java.lang.String classname)
classInVerbose
in interface ProperInterface
public void setVerboseString(java.lang.String verboseStr)
setVerboseString
in interface ProperInterface
public java.lang.String getVerboseString()
getVerboseString
in interface ProperInterface
public java.lang.Runtime getRuntime()
getRuntime
in interface ProperInterface
public void printMemory()
printMemory
in interface ProperInterface
public void print(int x)
print
in interface ProperInterface
public void print(boolean x)
print
in interface ProperInterface
public void print(java.lang.String x)
print
in interface ProperInterface
public void print(java.lang.Object x)
print
in interface ProperInterface
public void println()
println
in interface ProperInterface
public void println(int x)
println
in interface ProperInterface
public void println(boolean x)
println
in interface ProperInterface
public void println(java.lang.String x)
println
in interface ProperInterface
public void println(java.lang.Object x)
println
in interface ProperInterface
public void debugprint(int x)
debugprint
in interface ProperInterface
public void debugprint(boolean x)
debugprint
in interface ProperInterface
public void debugprint(java.lang.String x)
debugprint
in interface ProperInterface
public void debugprint(java.lang.Object x)
debugprint
in interface ProperInterface
public void debugprintln()
debugprintln
in interface ProperInterface
public void debugprintln(int x)
debugprintln
in interface ProperInterface
public void debugprintln(boolean x)
debugprintln
in interface ProperInterface
public void debugprintln(java.lang.String x)
debugprintln
in interface ProperInterface
public void debugprintln(java.lang.Object x)
debugprintln
in interface ProperInterface
public 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 |