Last change
on this file since 175 was
175,
checked in by sherbold, 13 years ago
|
- code documentation and formatting
|
File size:
1.0 KB
|
Line | |
---|
1 | package de.ugoe.cs.util.console;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * <p>
|
---|
5 | * Observer for Console.
|
---|
6 | * </p>
|
---|
7 | *
|
---|
8 | * @author Steffen Herbold
|
---|
9 | * @version 1.0
|
---|
10 | */
|
---|
11 | public interface ConsoleObserver {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * <p>
|
---|
15 | * If a new message is send to the console, all observers are updated using
|
---|
16 | * this method.
|
---|
17 | * </p>
|
---|
18 | *
|
---|
19 | * @param newMessage
|
---|
20 | * message that was send to the console.
|
---|
21 | */
|
---|
22 | public void updateText(String newMessage);
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * <p>
|
---|
26 | * Send messages to the error stream of all observers.
|
---|
27 | * </p>
|
---|
28 | *
|
---|
29 | * @param errMessage
|
---|
30 | * error message
|
---|
31 | */
|
---|
32 | public void errStream(String errMessage);
|
---|
33 |
|
---|
34 | /**
|
---|
35 | * <p>
|
---|
36 | * Send messages to the trace stream of all observers.
|
---|
37 | * </p>
|
---|
38 | *
|
---|
39 | * @param traceMesssage
|
---|
40 | * error message
|
---|
41 | */
|
---|
42 | public void trace(String traceMessage);
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * <p>
|
---|
46 | * Prints the stack trace of an exception.
|
---|
47 | * </p>
|
---|
48 | *
|
---|
49 | * @param e
|
---|
50 | * exception whose stack trace is to be printed
|
---|
51 | */
|
---|
52 | public void printStacktrace(Exception e);
|
---|
53 |
|
---|
54 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.