com.jaxfront.core.dom
Class LoggingListener

java.lang.Object
  extended by com.jaxfront.core.dom.LoggingListener
Direct Known Subclasses:
HistoryLoggingListener

public class LoggingListener
extends java.lang.Object

Defines a listener for logging changes occured in the target DOM. Every listener defines the source, the scope and the logLevel. The scope of a logListener maybe just its source or the whole subtree of this source.

Version:
1.60

Constructor Summary
LoggingListener(Type source, java.lang.String scope, java.lang.String logLevel)
          Creates a new LoggingListener based on a source type, a scope and a logLevel.
 
Method Summary
 void apply(Type source, DOMChangeEvent event, java.lang.String oldValue)
          Adds a logEntry if the passing source is addressing this loggingListener.
 void apply(Type source, java.beans.PropertyChangeEvent event, java.lang.String oldValue)
           
 java.lang.String getLogLevel()
          Returns the log level.
 java.lang.String getLogScope()
          Returns the log scope.
 Type getSource()
          Returns the source of this LoggingListener.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingListener

public LoggingListener(Type source,
                       java.lang.String scope,
                       java.lang.String logLevel)
Creates a new LoggingListener based on a source type, a scope and a logLevel.

Parameters:
source - of the loggingListener
scope - maybe source only (XUITypes.UIS_SOURCE_ONLY) or whole subtree (XUITypes.UIS_ALL_DERIVED_LEAFS)
logLevel - any logLevel
Method Detail

apply

public void apply(Type source,
                  DOMChangeEvent event,
                  java.lang.String oldValue)
Adds a logEntry if the passing source is addressing this loggingListener.

Parameters:
source - of an occured change
oldValue - forerunner value of the source

apply

public void apply(Type source,
                  java.beans.PropertyChangeEvent event,
                  java.lang.String oldValue)

getSource

public Type getSource()
Returns the source of this LoggingListener.


getLogLevel

public java.lang.String getLogLevel()
Returns the log level.


getLogScope

public java.lang.String getLogScope()
Returns the log scope.