|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.logging.LogItemDictionary
public class LogItemDictionary
This is a helper class for log facilities to store their
LogItems. This class maps log type indentifier
(LOGMODE constant defined by AbstractLogFacility)
to a LogItem of that type. This implies that only one
LogItem of a particular type can be stored in a
LogItemDictionary, which is always the case for log facilities.
LogItem,
AbstractLogFacility| Constructor Summary | |
|---|---|
LogItemDictionary()
Creates an empty LogItemDictionary. |
|
| Method Summary | |
|---|---|
boolean |
contains(long mode)
Tests if this dictionary contains LogItem of a type. |
LogItem |
get(long mode)
Returns the LogItem of a particular type. |
java.util.Enumeration |
items()
Returns an enumeration of all log items. |
LogItem |
put(LogItem item)
Adds a LogItem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogItemDictionary()
LogItemDictionary.
| Method Detail |
|---|
public boolean contains(long mode)
LogItem of a type.
mode - the type of the LogItem. One of the
LOGMODE constants defined by
AbstractLogFacility.
true if the LogItem exists.
false if not.public LogItem get(long mode)
LogItem of a particular type.
mode - the type of the LogItem. One of the
LOGMODE constants defined by
AbstractLogFacility.
LogItem of the specified type;
null if this type is not mapped to any item.public LogItem put(LogItem item)
LogItem. Its type is used as the key.
item - the LogItem to add.
LogItem of the same type, or null
if there was none.public java.util.Enumeration items()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||