public class LogItemDictionary
extends java.lang.Object
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 and Description |
|---|
LogItemDictionary()
Creates an empty
LogItemDictionary. |
| Modifier and Type | Method and Description |
|---|---|
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. |
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()
Copyright © SAS Institute. All Rights Reserved.