package com.apexmob.skink.listeners;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.apexmob.skink.EndElement;
import com.apexmob.skink.NodeListener;
import com.apexmob.skink.StartElement;
import com.apexmob.skink.Text;

public class DebugNodeListener implements NodeListener {
	
	private static final Logger logger = LoggerFactory.getLogger(DebugNodeListener.class);

	public void onStartElement(StartElement start) {
		logger.debug(start.getContent());
	}

	public void onText(Text text) {
		logger.debug(text.getContent());
	}

	public void onEndElement(EndElement end) {
		logger.debug(end.getContent());
	}

}

@@ -157,28 +157,28 @@
 b.skink.
-NodeListener
+StartElement
 ;%0D%0Aimpor
@@ -201,55 +201,103 @@
 ink.
-StartElement;%0D%0Aimport com.apexmob.skink.Text;%0D%0A
+Text;%0D%0A%0D%0A/**%0D%0A * The DebugNodeListener logs the contents of all events at the debug level.%0D%0A */
 %0D%0Apu
@@ -329,19 +329,24 @@
 ner 
-implement
+extend
 s 
+Abstract
 Node
@@ -447,24 +447,106 @@
 .class);%0D%0A%0D%0A
+%09/**%0D%0A%09 * %7B@inheritDoc%7D%0D%0A%09 * Log the contents of the event at debug level.%0D%0A%09 */%0D%0A
 %09public void
@@ -632,81 +632,245 @@
 %0A%0D%0A%09
-public void onText(Text text) %7B%0D%0A%09%09logger.debug(text.getContent());%0D%0A%09%7D%0D%0A
+/**%0D%0A%09 * %7B@inheritDoc%7D%0D%0A%09 * Log the contents of the event at debug level.%0D%0A%09 */%0D%0A%09public void onText(Text text) %7B%0D%0A%09%09logger.debug(text.getContent());%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * %7B@inheritDoc%7D%0D%0A%09 * Log the contents of the event at debug level.%0D%0A%09 */
 %0D%0A%09p

Add javadoc, Update to extend AbstractNodeListener