com.compoze.collab.log
Class LogEntryPrototype
java.lang.Object
|
+--com.compoze.collab.log.LogEntryPrototype
- Direct Known Subclasses:
- DefaultLogEntryPrototype
- public abstract class LogEntryPrototype
- extends java.lang.Object
This class contains information common to each different log entry. A new
EntryPrototype
instance is created for every type of
entry that's stored in the log.
Method Summary |
java.lang.Class |
getExceptionClass()
Gets the exception class of messages made from this prototype. |
java.lang.String |
getKey()
Gets the key in the resource bundle for log entry messages made from this
prototype. |
LogLevel |
getLogLevel()
Gets the level of log entries made from this prototype. |
boolean |
isExceptionPrototype()
Determines if the prototype is for an exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogEntryPrototype
protected LogEntryPrototype(LogResourceKey key,
LogLevel level,
java.lang.Class exceptionClass)
- Constructor.
- Parameters:
key
- the log resource keylevel
- the LogLevel
exceptionClass
- the Class
of the exception (or
null
if the prototype is not for an exception)
getKey
public java.lang.String getKey()
- Gets the key in the resource bundle for log entry messages made from this
prototype.
- Returns:
- the key
getLogLevel
public LogLevel getLogLevel()
- Gets the level of log entries made from this prototype.
- Returns:
- the log level
getExceptionClass
public java.lang.Class getExceptionClass()
- Gets the exception class of messages made from this prototype.
- Returns:
- the exception class (or
null
if the prototype is
not for an exception)
isExceptionPrototype
public boolean isExceptionPrototype()
- Determines if the prototype is for an exception.
- Returns:
true
if the prototype is for an exception
Copyright ©1999-2005 Compoze Software, Inc. All rights reserved.